diff --git a/composer.json b/composer.json index 4e24819..4e1f02d 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/Presets/Package.php b/src/Presets/Package.php index 3422f6a..1faa8f8 100644 --- a/src/Presets/Package.php +++ b/src/Presets/Package.php @@ -67,6 +67,14 @@ public function rootNamespace(): string return $namespace; } + /** + * Testing namespace. + */ + public function testingNamespace(): string + { + return $this->preset->config('testing.namespace', 'Tests'); + } + /** * Model namespace. */ diff --git a/src/Presets/Preset.php b/src/Presets/Preset.php index d4ba9f7..ae1b851 100644 --- a/src/Presets/Preset.php +++ b/src/Presets/Preset.php @@ -181,6 +181,11 @@ abstract public function sourcePath(): string; */ abstract public function rootNamespace(): string; + /** + * Testing namespace. + */ + abstract public function testingNamespace(): string; + /** * Model namespace. */