From c30f38f076f22daa9136607bb38ec455b2bd36cb Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 13 Sep 2023 10:23:03 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- src/Presets/Package.php | 8 ++++++++ src/Presets/Preset.php | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) 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. */