Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 27, 2023
1 parent bfba3c6 commit 640b63c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Commands/GeneratorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Orchestra\Testbench\TestCase;
use PHPUnit\Framework\Attributes\Test;

use function Illuminate\Filesystem\join_paths;

class GeneratorCommandTest extends TestCase
{
use InteractsWithPublishedFiles;
Expand Down Expand Up @@ -90,7 +92,7 @@ public function it_cannot_generate_class_file_given_reserved_name()
#[Test]
public function it_cannot_generate_class_file_when_file_already_exist()
{
file_put_contents(base_path('app/Value/Foo.php'), '<?php '.PHP_EOL);
file_put_contents(base_path(join_paths('app', 'Value', 'Foo.php')), '<?php '.PHP_EOL);

$this->artisan('make:code', ['name' => 'Value/Foo'])
->expectsOutputToContain('class [app/Value/Foo.php] already exists!')
Expand Down

0 comments on commit 640b63c

Please sign in to comment.