Fix name
This commit is contained in:
parent
4a45ef691e
commit
4dea85e2c8
1 changed files with 4 additions and 6 deletions
|
|
@ -1,17 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Tests\Feature;
|
namespace Tests\Feature\Http\Console\Commands;
|
||||||
|
|
||||||
use App\Console\Commands\FetchNewArticlesCommand;
|
|
||||||
use App\Jobs\ArticleDiscoveryJob;
|
use App\Jobs\ArticleDiscoveryJob;
|
||||||
use App\Jobs\ArticleDiscoveryForFeedJob;
|
|
||||||
use App\Models\Feed;
|
use App\Models\Feed;
|
||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
use Illuminate\Support\Facades\Queue;
|
use Illuminate\Support\Facades\Queue;
|
||||||
use Illuminate\Testing\PendingCommand;
|
use Illuminate\Testing\PendingCommand;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class ArticleDiscoveryCommandTest extends TestCase
|
class FetchNewArticlesCommandTest extends TestCase
|
||||||
{
|
{
|
||||||
use RefreshDatabase;
|
use RefreshDatabase;
|
||||||
|
|
||||||
|
|
@ -24,7 +22,7 @@ public function test_command_runs_successfully_when_feeds_exist(): void
|
||||||
/** @var PendingCommand $exitCode */
|
/** @var PendingCommand $exitCode */
|
||||||
$exitCode = $this->artisan('article:refresh');
|
$exitCode = $this->artisan('article:refresh');
|
||||||
$exitCode->assertSuccessful();
|
$exitCode->assertSuccessful();
|
||||||
|
|
||||||
// The command should complete without the "no feeds" message
|
// The command should complete without the "no feeds" message
|
||||||
$exitCode->assertExitCode(0);
|
$exitCode->assertExitCode(0);
|
||||||
}
|
}
|
||||||
|
|
@ -72,4 +70,4 @@ public function test_command_logs_when_no_feeds_available(): void
|
||||||
$exitCode->assertSuccessful();
|
$exitCode->assertSuccessful();
|
||||||
$exitCode->expectsOutput('No active feeds found. Article discovery skipped.');
|
$exitCode->expectsOutput('No active feeds found. Article discovery skipped.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue