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 Sep 9, 2023
1 parent 0260e6c commit fb44e9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Presets/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function providerNamespace(): string
*/
public function getCustomStubPath(): ?string
{
return null;
return sprintf('%s/stubs', $this->basePath());
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Presets/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function __construct(
protected string $basePath,
protected Filesystem $files
) {
//
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Presets/PackageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public function it_has_proper_signatures()
$this->assertSame("{$directory}/database/migrations", $preset->migrationPath());
$this->assertSame("{$directory}/database/seeders", $preset->seederPath());

$this->assertFalse($preset->hasCustomStubPath());
$this->assertNull($preset->getCustomStubPath());
$this->assertTrue($preset->hasCustomStubPath());
$this->assertSame("{$directory}/stubs", $preset->getCustomStubPath());

$this->assertSame($files, $preset->filesystem());
}
Expand Down

0 comments on commit fb44e9f

Please sign in to comment.