@@ -12,55 +12,55 @@ class MakeDatatableCommandTest extends TestCase
1212 /** @test */
1313 public function component_is_created_by_make_command ()
1414 {
15- Artisan::call ('livewire: datatable ' , ['name ' => 'foo ' ]);
15+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'foo ' ]);
1616
1717 $ this ->assertTrue (File::exists ($ this ->livewireClassesPath ('Foo.php ' )));
1818 }
1919
2020 /** @test */
2121 public function dot_nested_component_is_created_by_make_command ()
2222 {
23- Artisan::call ('livewire: datatable ' , ['name ' => 'foo.bar ' ]);
23+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'foo.bar ' ]);
2424
2525 $ this ->assertTrue (File::exists ($ this ->livewireClassesPath ('Foo/Bar.php ' )));
2626 }
2727
2828 /** @test */
2929 public function forward_slash_nested_component_is_created_by_make_command ()
3030 {
31- Artisan::call ('livewire: datatable ' , ['name ' => 'foo/bar ' ]);
31+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'foo/bar ' ]);
3232
3333 $ this ->assertTrue (File::exists ($ this ->livewireClassesPath ('Foo/Bar.php ' )));
3434 }
3535
3636 /** @test */
3737 public function multiword_component_is_created_by_make_command ()
3838 {
39- Artisan::call ('livewire: datatable ' , ['name ' => 'foo-bar ' ]);
39+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'foo-bar ' ]);
4040
4141 $ this ->assertTrue (File::exists ($ this ->livewireClassesPath ('FooBar.php ' )));
4242 }
4343
4444 /** @test */
4545 public function pascal_case_component_is_automatically_converted_by_make_command ()
4646 {
47- Artisan::call ('livewire: datatable ' , ['name ' => 'FooBar.FooBar ' ]);
47+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'FooBar.FooBar ' ]);
4848
4949 $ this ->assertTrue (File::exists ($ this ->livewireClassesPath ('FooBar/FooBar.php ' )));
5050 }
5151
5252 /** @test */
5353 public function snake_case_component_is_automatically_converted_by_make_command ()
5454 {
55- Artisan::call ('livewire: datatable ' , ['name ' => 'text_replace ' ]);
55+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'text_replace ' ]);
5656
5757 $ this ->assertTrue (File::exists ($ this ->livewireClassesPath ('TextReplace.php ' )));
5858 }
5959
6060 /** @test */
6161 public function snake_case_component_is_automatically_converted_by_make_command_on_nested_component ()
6262 {
63- Artisan::call ('livewire: datatable ' , ['name ' => 'TextManager.text_replace ' ]);
63+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'TextManager.text_replace ' ]);
6464
6565 $ this ->assertTrue (File::exists ($ this ->livewireClassesPath ('TextManager/TextReplace.php ' )));
6666 }
@@ -79,7 +79,7 @@ public function new_component_model_name_matches_option()
7979 /** @test */
8080 public function a_component_is_not_created_with_a_reserved_class_name ()
8181 {
82- Artisan::call ('livewire: datatable ' , ['name ' => 'component ' ]);
82+ Artisan::call ('make:livewire- datatable ' , ['name ' => 'component ' ]);
8383
8484 $ this ->assertFalse (File::exists ($ this ->livewireClassesPath ('Component.php ' )));
8585 }
0 commit comments