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 Aug 19, 2023
1 parent 91f2419 commit c68bf72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function registerCanvasForWorkbench(Filesystem $filesystem): Preset
],
],
],
Workbench::packagePath(),
rtrim(Workbench::packagePath(), DIRECTORY_SEPARATOR),
$filesystem
);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Presets/PackageWorkbenchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PackageWorkbenchTest extends TestCase
/** @test */
public function it_has_proper_signatures()
{
$directory = __DIR__;
$directory = rtrim(Workbench::packagePath(), DIRECTORY_SEPARATOR);
$preset = new PackageWorkbench([], $directory, $files = new Filesystem());

$this->assertSame('workbench', $preset->name());
Expand All @@ -34,7 +34,7 @@ public function it_has_proper_signatures()
$this->assertSame('Workbench\Database\Seeders', $preset->seederNamespace());

$this->assertSame(Workbench::path('app'), $preset->sourcePath());
$this->assertSame("{$directory}/vendor", $preset->vendorPath());
$this->assertSame(Workbench::packagePath('vendor'), $preset->vendorPath());
$this->assertSame(Workbench::path('resources'), $preset->resourcePath());
$this->assertSame(Workbench::path('database/factories'), $preset->factoryPath());
$this->assertSame(Workbench::path('database/migrations'), $preset->migrationPath());
Expand Down

0 comments on commit c68bf72

Please sign in to comment.