fix ZMRequestTest wrong assertion

This commit is contained in:
sunxyw
2022-12-31 20:22:55 +08:00
parent a62e950870
commit 3f26648a3c
3 changed files with 14 additions and 10 deletions

View File

@@ -56,9 +56,9 @@ class ZMConfigTest extends TestCase
]);
try {
$config = new ZMConfig([
$this->vfs->url(),
], 'development');
$init_conf = require SOURCE_ROOT_DIR . '/config/config.php';
$init_conf['source']['paths'] = [$this->vfs->url()];
$config = new ZMConfig('development', $init_conf);
} catch (ConfigException $e) {
$this->fail($e->getMessage());
}