From eeafc6a862b95761bbfbce385460865576775b81 Mon Sep 17 00:00:00 2001 From: jiannei Date: Thu, 29 Dec 2022 16:01:52 +0800 Subject: [PATCH] fix: format test --- tests/TestCase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index d61fb8d..7d941a8 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -43,6 +43,8 @@ protected function defineEnvironment($app) ]); $app['config']->set('response.enum', \Jiannei\Response\Laravel\Tests\Repositories\Enums\ResponseCodeEnum::class); - $app['config']->set('response.format', \Jiannei\Response\Laravel\Tests\Support\Format::class); + if ($this instanceof FormatTest) { + $app['config']->set('response.format', \Jiannei\Response\Laravel\Tests\Support\Format::class); + } } }