Fix test to teardown it's own mess
authoreileen <emcnaughton@wikimedia.org>
Tue, 9 Mar 2021 22:54:17 +0000 (11:54 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 9 Mar 2021 22:54:17 +0000 (11:54 +1300)
commitcc4c8d1dbc3461894a81b21104fc464ec29aa3d2
treeda67417006f95b9537ae2a8d022166187477ca86
parent3f7deec2d1383a75849eee400f12615437e5c163
Fix test to teardown it's own mess

This business of doing cleanup in the setup is an anti-pattern and
it actually adds some internal dependency - if you
run JUST the one test (conditions probably apply) it
falls over with a 'cannot find DSN'. Rather than track that
down that weirdness we should fix the tests to
tearDown in the teardown
tests/phpunit/api/v4/Action/ComplexQueryTest.php