Skip to content

Commit f3e85ae

Browse files
committed
add missing parameters in models-count-legacy
1 parent 960797d commit f3e85ae

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/commands/RunModelCountWithScopeTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
use Symfony\Component\Console\Output\BufferedOutput;
88

99
it('ensure models-count is callable', function () {
10-
// Http::fake([
11-
// config('eloquentize.api_url').'/api/metrics/models' => Http::response(['status' => 'ok'], 200),
12-
// ]);
10+
Http::fake([
11+
config('eloquentize.api_url').'/api/metrics/models' => Http::response(['status' => 'ok'], 200),
12+
]);
1313

14-
// $this->artisan('eloquentize:models-count --modelsPath=Testing/Models -v --scope=PriceOver --scopeValue=1 ')
15-
// ->assertExitCode(Command::SUCCESS);
14+
$this->artisan('eloquentize:models-count --modelsPath=Testing/Models -v --models=Bill --scope=PriceOver --scopeValue=1 ')
15+
->assertExitCode(Command::SUCCESS);
1616

17-
$this->output = new BufferedOutput();
18-
Artisan::call('eloquentize:models-count --modelsPath=Testing/Models -v --models=Bill --scope=PriceOver --scopeValue=1 -v', [], $this->output);
19-
$outputContent = $this->output->fetch();
20-
echo 'out :'.$outputContent;
17+
// $this->output = new BufferedOutput();
18+
// Artisan::call('eloquentize:models-count --modelsPath=Testing/Models -v --models=Bill --scope=PriceOver --scopeValue=1 -v', [], $this->output);
19+
// $outputContent = $this->output->fetch();
20+
// echo 'out :'.$outputContent;
2121
})->with([
2222
fn () => Bill::factory()->create(['ref' => 'BILL_0000001', 'price' => 1000]),
2323
fn () => Bill::factory()->create(['ref' => 'BILL_0000002', 'price' => 500]),
24-
])->only();
24+
]);

0 commit comments

Comments
 (0)