public function testActivatePlugin() { $testee = new WpTestsStarter(''); $plugin = 'my/plugin.php'; $testee->setActivePlugin($plugin); $this->assertContains($plugin, $GLOBALS['wp_tests_options']['active_plugins']); }