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 Aug 11, 2023
1 parent 9ff5b9a commit 1e95f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Unit/Presets/LaravelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ public function it_has_proper_signatures()
$this->assertFalse($preset->is('package'));

$this->assertSame($directory, $preset->basePath());
$this->assertSame($preset->basePath(), $preset->laravelPath());

$this->assertSame('App', $preset->rootNamespace());
$this->assertSame('App\Models', $preset->modelNamespace());
$this->assertSame('App\Providers', $preset->providerNamespace());

$this->assertSame("{$directory}/app", $preset->sourcePath());
$this->assertSame("{$directory}/vendor", $preset->vendorPath());
$this->assertSame("{$directory}/resources", $preset->resourcePath());
$this->assertSame("{$directory}/database/factories", $preset->factoryPath());
$this->assertSame("{$directory}/database/migrations", $preset->migrationPath());
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Presets/PackageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ public function it_has_proper_signatures()
$this->assertFalse($preset->is('laravel'));

$this->assertSame($directory, $preset->basePath());
$this->assertSame("{$directory}/vendor/orchestra/testbench-core/laravel", $preset->laravelPath());

$this->assertSame('FooBar', $preset->rootNamespace());
$this->assertSame('FooBar', $preset->modelNamespace());
$this->assertSame('FooBar', $preset->providerNamespace());

$this->assertSame("{$directory}/src", $preset->sourcePath());
$this->assertSame("{$directory}/vendor", $preset->vendorPath());
$this->assertSame("{$directory}/resources", $preset->resourcePath());
$this->assertSame("{$directory}/database/factories", $preset->factoryPath());
$this->assertSame("{$directory}/database/migrations", $preset->migrationPath());
Expand Down

0 comments on commit 1e95f5e

Please sign in to comment.