コード例 #1
0
 /**
  * @param boolean $shouldPass
  * @param string $prioritized
  * @dataProvider providerLoadPrioritized
  */
 public function testLoadPrioritized($shouldPass, $prioritized)
 {
     $this->module->initialize();
     $this->module->setOption('prioritized', $prioritized);
     $this->module->getData();
     $prioritized = $this->module->loadPrioritized();
     if ($shouldPass) {
         $this->assertNotEmpty($prioritized);
     } else {
         $this->assertEmpty($prioritized);
     }
 }
コード例 #2
0
 /**
  * Ensure initialize sets up the default options
  * @return void
  */
 public function testInitialize()
 {
     $this->module->initialize();
     $this->assertNotEmpty($this->module->config);
     $this->assertArrayHasKey('selectedKey', $this->module->config);
 }