66
77class LaravelAuthorizerTest extends TestCase
88{
9- public function testCanRunTests (): void
9+ public function test_can_run_tests (): void
1010 {
1111 $ this ->assertTrue (true );
1212 }
1313
14- public function testCanRunCommandSuccessfully (): void
14+ public function test_can_run_command_successfully (): void
1515 {
1616 $ this ->artisan (LaravelAuthorizerCommand::class, [
1717 'name ' => 'User ' ,
1818 '--model ' => 'User ' ,
1919 ])->assertSuccessful ();
2020 }
2121
22- public function testCanCreatePolicyWhenCalledWithSpecificPolicyName (): void
22+ public function test_can_create_policy_when_called_with_specific_policy_name (): void
2323 {
2424 $ this ->artisan (LaravelAuthorizerCommand::class, [
2525 'name ' => 'Post ' ,
@@ -29,7 +29,7 @@ public function testCanCreatePolicyWhenCalledWithSpecificPolicyName(): void
2929 $ this ->assertFileExists (base_path ('app/Policies/PostPolicy.php ' ));
3030 }
3131
32- public function testCanAppendPolicyToFilenameEventIfItWasIncludedInPolicyName (): void
32+ public function test_can_append_policy_to_filename_event_if_it_was_included_in_policy_name (): void
3333 {
3434 $ this ->artisan (LaravelAuthorizerCommand::class, [
3535 'name ' => 'UserPolicy ' ,
@@ -39,7 +39,7 @@ public function testCanAppendPolicyToFilenameEventIfItWasIncludedInPolicyName():
3939 $ this ->assertFileExists (base_path ('app/Policies/UserPolicy.php ' ));
4040 }
4141
42- public function testCanGeneratePoliciesForAllModels (): void
42+ public function test_can_generate_policies_for_all_models (): void
4343 {
4444 collect ([
4545 'User ' ,
@@ -71,7 +71,7 @@ public function testCanGeneratePoliciesForAllModels(): void
7171 $ this ->assertFileExists (base_path ('app/Policies/OrderItemPolicy.php ' ));
7272 }
7373
74- public function testCanSkipExistingPolicies (): void
74+ public function test_can_skip_existing_policies (): void
7575 {
7676 $ this ->artisan (LaravelAuthorizerCommand::class, [
7777 'name ' => 'User ' ,
@@ -86,7 +86,7 @@ public function testCanSkipExistingPolicies(): void
8686 ])->assertSuccessful ();
8787 }
8888
89- public function testCanForceCreatePolicyEvenIfItExists (): void
89+ public function test_can_force_create_policy_even_if_it_exists (): void
9090 {
9191 $ this ->artisan (LaravelAuthorizerCommand::class, [
9292 'name ' => 'User ' ,
0 commit comments