Avoid database access in ImportTitleFactory tests dataProviders
authoraude <aude.wiki@gmail.com>
Sat, 18 Mar 2017 23:06:47 +0000 (19:06 -0400)
committeraude <aude.wiki@gmail.com>
Sat, 18 Mar 2017 23:12:52 +0000 (19:12 -0400)
commitffe62978e32e580a8e193bfbdda5b225b97c83bd
tree8961cd139ebfba9bb5bc30d67c82f502b0697b6f
parent61f06c79f92b653639fbd710554b424eb20a77eb
Avoid database access in ImportTitleFactory tests dataProviders

data providers run when the test database tables are not setup
and thus hit the regular database.

If possible, we should avoid this which can be done in these
tests by creating the Title objects in the tests themselves.

Change-Id: I084938b79d7b719a9bb524d4596635b9e1eb4486
tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
tests/phpunit/includes/title/NamespaceImportTitleFactoryTest.php