コード例 #1
0
ファイル: test-log.php プロジェクト: Shelob9/plugin-love
 /**
  *
  * @covers Rating_Log::acted_on()
  */
 public function testActedOn()
 {
     $plugins = $this->mock_plugin_paths();
     update_option('active_plugins', $plugins);
     Rating_Log::mark('tests/fake-one.php');
     $this->assertTrue(Rating_Log::acted_on('tests/fake-one.php'));
     $this->assertFalse(Rating_Log::acted_on('tests/fake-two.php'));
 }
コード例 #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();
 }
コード例 #3
0
ファイル: test-choice.php プロジェクト: Shelob9/plugin-love
 public function setUp()
 {
     parent::setUp();
     Rating_Log::add_all();
 }