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 ca0430d commit ef6d92c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/Unit/Presets/PackageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use Orchestra\Canvas\Presets\Package;
use PHPUnit\Framework\TestCase;

use function Illuminate\Filesystem\join_paths;

class PackageTest extends TestCase
{
/** @test */
Expand All @@ -28,11 +30,11 @@ public function it_has_proper_signatures()
$this->assertSame('Database\Factories', $preset->factoryNamespace());
$this->assertSame('Database\Seeders', $preset->seederNamespace());

$this->assertSame("{$directory}/src", $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, 'src'), $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->assertNull($preset->getCustomStubPath());
}
Expand Down

0 comments on commit ef6d92c

Please sign in to comment.