Keep application plugins out of core tests.
Move CakePlugin::unload() to setUp.
If the tests are run in an app with plugins the first test would fail
due to the application's plugins showing in CakePlugin::loaded().
Update the object cache.
Keep application plugins out of core tests, otherwise tests will fail.
Can you submit again the patch but also leaving the unload() call in tearDown() ? that way you won't contaminate the other tests when running the complete testsuite
Ok, but I will add CakePlugin::unload() to CakePluginTest::testLoadSingle(), otherwise it will fail.