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 13, 2023
1 parent c30f38f commit 5a86593
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Presets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ public function rootNamespace(): string
return $this->config['namespace'] ?? 'App';
}

/**
* Testing namespace.
*/
public function testingNamespace(): string
{
return $this->preset->config('testing.namespace', 'Tests');

Check failure on line 68 in src/Presets/Laravel.php

View workflow job for this annotation

GitHub Actions / PHP8.1 on ubuntu-latest (highest)

Access to an undefined property Orchestra\Canvas\Core\Presets\Laravel::$preset.
}

/**
* Model namespace.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Presets/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function rootNamespace(): string
*/
public function testingNamespace(): string
{
return $this->preset->config('testing.namespace', 'Tests');
return $this->preset->config('testing.namespace', $this->rootNamespace().'\Tests');

Check failure on line 75 in src/Presets/Package.php

View workflow job for this annotation

GitHub Actions / PHP8.1 on ubuntu-latest (highest)

Access to an undefined property Orchestra\Canvas\Core\Presets\Package::$preset.
}

/**
Expand Down

0 comments on commit 5a86593

Please sign in to comment.