コード例 #1
0
ファイル: test-log.php プロジェクト: Shelob9/plugin-love
 /**
  * @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']);
 }
コード例 #2
0
ファイル: Rating_Choice.php プロジェクト: Shelob9/plugin-love
 /**
  *
  * @return array Log of plugins to choose from
  */
 protected function set_possible()
 {
     $this->possible = Rating_Log::get();
 }