Skip to content

Commit

Permalink
Fix Artisan::call() syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Nov 2, 2023
1 parent e2b0a79 commit 0ac7f55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/CommandRouteGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function can_derive_dts_file_path_from_given_path()
/** @test */
public function can_generate_correct_file_extensions_from_js_path_argument()
{
Artisan::call('ziggy:generate resources/scripts/x.js --types');
Artisan::call('ziggy:generate', ['path' => 'resources/scripts/x.js', '--types' => true]);

$this->assertFileExists(base_path('resources/scripts/x.js'));
$this->assertFileExists(base_path('resources/scripts/x.d.ts'));
Expand All @@ -226,7 +226,7 @@ public function can_generate_correct_file_extensions_from_js_path_argument()
/** @test */
public function can_generate_correct_file_extensions_from_ts_path_argument()
{
Artisan::call('ziggy:generate resources/scripts/y.ts --types');
Artisan::call('ziggy:generate', ['path' => 'resources/scripts/y.ts', '--types' => true]);

$this->assertFileExists(base_path('resources/scripts/y.js'));
$this->assertFileExists(base_path('resources/scripts/y.d.ts'));
Expand All @@ -235,7 +235,7 @@ public function can_generate_correct_file_extensions_from_ts_path_argument()
/** @test */
public function can_generate_correct_file_extensions_from_dts_path_argument()
{
Artisan::call('ziggy:generate resources/scripts/z.d.ts --types');
Artisan::call('ziggy:generate', ['path' => 'resources/scripts/z.d.ts', '--types' => true]);

$this->assertFileExists(base_path('resources/scripts/z.js'));
$this->assertFileExists(base_path('resources/scripts/z.d.ts'));
Expand All @@ -244,7 +244,7 @@ public function can_generate_correct_file_extensions_from_dts_path_argument()
/** @test */
public function can_generate_correct_file_extensions_from_ambiguous_path_argument()
{
Artisan::call('ziggy:generate resources/scripts/foo --types');
Artisan::call('ziggy:generate', ['path' => 'resources/scripts/foo', '--types' => true]);

$this->assertFileExists(base_path('resources/scripts/foo.js'));
$this->assertFileExists(base_path('resources/scripts/foo.d.ts'));
Expand All @@ -253,7 +253,7 @@ public function can_generate_correct_file_extensions_from_ambiguous_path_argumen
/** @test */
public function can_generate_correct_file_extensions_from_directory_path_argument()
{
Artisan::call('ziggy:generate resources/js --types');
Artisan::call('ziggy:generate', ['path' => 'resources/js', '--types' => true]);

$this->assertFileExists(base_path('resources/js/ziggy.js'));
$this->assertFileExists(base_path('resources/js/ziggy.d.ts'));
Expand Down

0 comments on commit 0ac7f55

Please sign in to comment.