Skip to content

Commit

Permalink
Update EnumMakeCommandTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Mar 8, 2024
1 parent b585aef commit 639b559
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/Integration/Generators/EnumMakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,4 @@ public function testItCanGenerateEnumFileWithInt()
'enum IntEnum: int',
], 'app/IntEnum.php');
}

public function testItCanGenerateEnumFileInEnumsFolder()
{
File::makeDirectory(app_path().'\\Enums', force: true);

$this->artisan('make:enum', ['name' => 'ImplicitEnum'])
->assertExitCode(0);

$this->assertFileContains([
'namespace App\Enums;',
'enum ImplicitEnum',
], 'app/Enums/ImplicitEnum.php');

File::deleteDirectory(app_path().'\\Enums');
}
}

0 comments on commit 639b559

Please sign in to comment.