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 Dec 27, 2023
1 parent 7166eac commit cb66269
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Feature/GeneratorPresetTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Canvas\Tests;
namespace Orchestra\Canvas\Tests\Feature;

use Orchestra\Canvas\Core\PresetManager;
use Orchestra\Canvas\Core\Presets\Preset;
Expand Down Expand Up @@ -56,13 +56,13 @@ public function it_can_be_resolved_and_has_correct_signature_as_package_preset()
$this->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());
Expand Down

0 comments on commit cb66269

Please sign in to comment.