Esempio n. 1
0
 /**
  * Set active node to named 'default', as well as unknown 'NOP'
  */
 public function testSetActiveNode()
 {
     $tokens = PandraCore::getPoolTokens();
     foreach ($tokens as $token) {
         $this->assertTrue(PandraCore::setActiveNode($token));
     }
     $this->assertFalse(PandraCore::setActiveNode('NOP'));
 }
Esempio n. 2
0
 /**
  * Set active node to named 'default', as well as unknown 'NOP'
  */
 public function testSetActiveNode()
 {
     $this->assertTrue(PandraCore::setActiveNode('default'));
     $this->assertFalse(PandraCore::setActiveNode('NOP'));
 }