From cb662698aebb8a95ed99372c788f7fac359edf00 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 27 Dec 2023 21:30:08 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- tests/Feature/GeneratorPresetTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Feature/GeneratorPresetTest.php b/tests/Feature/GeneratorPresetTest.php index 7a9a030..f282c28 100644 --- a/tests/Feature/GeneratorPresetTest.php +++ b/tests/Feature/GeneratorPresetTest.php @@ -1,6 +1,6 @@ assertInstanceOf(Preset::class, $preset); $this->assertSame('canvas', $preset->name()); - $this->assertSame("{$workingPath}", $preset->basePath()); - $this->assertSame("{$workingPath}/src", $preset->sourcePath()); - $this->assertSame("{$workingPath}/resources", $preset->resourcePath()); - $this->assertSame("{$workingPath}/resources/views", $preset->viewPath()); - $this->assertSame("{$workingPath}/database/factories", $preset->factoryPath()); - $this->assertSame("{$workingPath}/database/migrations", $preset->migrationPath()); - $this->assertSame("{$workingPath}/database/seeders", $preset->seederPath()); + $this->assertSame($workingPath, $preset->basePath()); + $this->assertSame(join_paths($workingPath, 'src'), $preset->sourcePath()); + $this->assertSame(join_paths($workingPath, 'resources'), $preset->resourcePath()); + $this->assertSame(join_paths($workingPath, 'resources', 'views'), $preset->viewPath()); + $this->assertSame(join_paths($workingPath, 'database', 'factories'), $preset->factoryPath()); + $this->assertSame(join_paths($workingPath, 'database', 'migrations'), $preset->migrationPath()); + $this->assertSame(join_paths($workingPath, 'database', 'seeders'), $preset->seederPath()); $this->assertSame('Acme\\', $preset->rootNamespace()); $this->assertSame('Acme\Console\\', $preset->commandNamespace());