From 5a86593313a44b023de345d97945912dfead3352 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 13 Sep 2023 10:24:50 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/Presets/Laravel.php | 8 ++++++++ src/Presets/Package.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Presets/Laravel.php b/src/Presets/Laravel.php index 808e0ac..a53df9d 100644 --- a/src/Presets/Laravel.php +++ b/src/Presets/Laravel.php @@ -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'); + } + /** * Model namespace. */ diff --git a/src/Presets/Package.php b/src/Presets/Package.php index 1faa8f8..1a615b6 100644 --- a/src/Presets/Package.php +++ b/src/Presets/Package.php @@ -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'); } /**