mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-12 03:05:34 +08:00
refactor ZMConfig
This commit is contained in:
@@ -10,6 +10,7 @@ use Swoole\Http\Response;
|
||||
use Symfony\Component\Routing\RouteCollection;
|
||||
use ZM\Annotation\Http\RequestMapping;
|
||||
use ZM\Annotation\Http\RequestMethod;
|
||||
use ZM\Config\ZMConfig;
|
||||
use ZM\Utils\HttpUtil;
|
||||
use ZM\Utils\Manager\RouteManager;
|
||||
|
||||
@@ -25,7 +26,7 @@ class HttpUtilTest extends TestCase
|
||||
{
|
||||
$swoole_response = $this->getMockClass(Response::class);
|
||||
$r = new \ZM\Http\Response(new $swoole_response());
|
||||
HttpUtil::handleStaticPage($page, $r);
|
||||
HttpUtil::handleStaticPage($page, $r, ZMConfig::get('global', 'static_file_server'));
|
||||
$this->assertEquals($expected, $r->getStatusCode() === 200);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user