test: fix incorrect config

The test is when BaseURL does not have `index.php`, so $config->indexPage
should be empty string.
This commit is contained in:
kenjis 2022-10-14 09:59:17 +09:00
parent 935a529092
commit 027e9e68b6
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -870,7 +870,7 @@ final class URITest extends CIUnitTestCase
$config = new App();
$config->baseURL = 'http://example.com/ci/v4/';
$config->indexPage = 'index.php';
$config->indexPage = '';
Factories::injectMock('config', 'App', $config);
$request = Services::request($config);