Add TestAutoloadNamespaces

Remove require_once from ApiQueryPageImagesTest

Change-Id: I0d1cf452a3c88e0cbac4c44284b7dc673bbca886
This commit is contained in:
Reedy 2020-04-20 00:05:23 +01:00
parent b14685b8d5
commit 0a406c67a8
3 changed files with 3 additions and 2 deletions

View file

@ -24,6 +24,9 @@
"AutoloadNamespaces": {
"PageImages\\": "includes/"
},
"TestAutoloadNamespaces": {
"PageImages\\Tests\\": "tests/phpunit/"
},
"Hooks": {
"AfterParserFetchFileAndTitle": "PageImages\\Hooks\\ParserFileProcessingHookHandlers::onAfterParserFetchFileAndTitle",
"ApiOpenSearchSuggest": "PageImages\\PageImages::onApiOpenSearchSuggest",

View file

@ -2,8 +2,6 @@
namespace PageImages\Tests;
require_once 'ApiQueryPageImagesProxyMock.php';
use PageImages\ApiQueryPageImages;
use PageImages\PageImages;
use Title;