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 d4722ad commit c30f38f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"phpstan/phpstan": "^1.10.6"
},
"conflict": {
"orchestra/canvas": "<7.7.0",
"orchestra/canvas": "<7.8.0",
"orchestra/testbench-core": "<7.25.0"
},
"config": {
Expand Down
8 changes: 8 additions & 0 deletions src/Presets/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ public function rootNamespace(): string
return $namespace;
}

/**
* Testing namespace.
*/
public function testingNamespace(): string
{
return $this->preset->config('testing.namespace', '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.
}

/**
* Model namespace.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Presets/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ abstract public function sourcePath(): string;
*/
abstract public function rootNamespace(): string;

/**
* Testing namespace.
*/
abstract public function testingNamespace(): string;

/**
* Model namespace.
*/
Expand Down

0 comments on commit c30f38f

Please sign in to comment.