/** * @covers Rating_Log::mark() */ public function testMarkAsActedOn() { $plugins = $this->mock_plugin_paths(); update_option('active_plugins', $plugins); Rating_Log::mark('tests/fake-one.php'); $log = Rating_Log::get(); $this->assertTrue($log['tests/fake-one.php']['acted_on']); $this->assertFalse($log['tests/fake-two.php']['acted_on']); }
/** * * @return array Log of plugins to choose from */ protected function set_possible() { $this->possible = Rating_Log::get(); }