From 1e95f5e1e90fd139f22eeafbd0b9390fa9813771 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 11 Aug 2023 11:18:21 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- tests/Unit/Presets/LaravelTest.php | 2 ++ tests/Unit/Presets/PackageTest.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/Unit/Presets/LaravelTest.php b/tests/Unit/Presets/LaravelTest.php index 9cb93bc..1da5902 100644 --- a/tests/Unit/Presets/LaravelTest.php +++ b/tests/Unit/Presets/LaravelTest.php @@ -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()); diff --git a/tests/Unit/Presets/PackageTest.php b/tests/Unit/Presets/PackageTest.php index 91d84e9..b91a574 100644 --- a/tests/Unit/Presets/PackageTest.php +++ b/tests/Unit/Presets/PackageTest.php @@ -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());