修复Request Test中isAjax和isPjax错误的测试用例

This commit is contained in:
Gaozhen Ying
2017-09-08 10:56:11 +08:00
committed by ThinkPHP
parent 627cfe5616
commit 6d82fe4a56
2 changed files with 20 additions and 4 deletions

View File

@@ -34,11 +34,11 @@ trait ConfigInitTrait
{
self::$internalConfigFoo = \Closure::bind(function($value = null) {
return !is_null($value) ? Config::$config = $value : Config::$config;
}, null, Config::class);
}, null, '\\Think\\Config');
self::$internalRangeFoo = \Closure::bind(function($value = null) {
return !is_null($value) ? Config::$range = $value : Config::$range;
}, null, Config::class);
}, null, '\\Think\\Config');
self::$originConfig = call_user_func(self::$internalConfigFoo);
self::$originRange = call_user_func(self::$internalRangeFoo);