Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 27, 2023
1 parent 2b1e499 commit ca0430d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/Unit/Presets/LaravelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use Orchestra\Canvas\Presets\Laravel;
use PHPUnit\Framework\TestCase;

use function Illuminate\Filesystem\join_paths;

class LaravelTest extends TestCase
{
/**
Expand Down Expand Up @@ -36,13 +38,13 @@ public function it_has_proper_signatures()
$this->assertSame('Database\Factories', $preset->factoryNamespace());
$this->assertSame('Database\Seeders', $preset->seederNamespace());

$this->assertSame("{$directory}/app", $preset->sourcePath());
$this->assertSame("{$directory}/resources", $preset->resourcePath());
$this->assertSame("{$directory}/database/factories", $preset->factoryPath());
$this->assertSame("{$directory}/database/migrations", $preset->migrationPath());
$this->assertSame("{$directory}/database/seeders", $preset->seederPath());
$this->assertSame(join_paths($directory, 'app'), $preset->sourcePath());
$this->assertSame(join_paths($directory, 'resources'), $preset->resourcePath());
$this->assertSame(join_paths($directory, 'database', 'factories'), $preset->factoryPath());
$this->assertSame(join_paths($directory, 'database', 'migrations'), $preset->migrationPath());
$this->assertSame(join_paths($directory, 'database', 'seeders'), $preset->seederPath());

$this->assertSame("{$directory}/stubs", $preset->getCustomStubPath());
$this->assertSame(join_paths($directory, 'stubs'), $preset->getCustomStubPath());
}

/** @test */
Expand Down

0 comments on commit ca0430d

Please sign in to comment.