/** * 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')); }
/** * Set active node to named 'default', as well as unknown 'NOP' */ public function testSetActiveNode() { $this->assertTrue(PandraCore::setActiveNode('default')); $this->assertFalse(PandraCore::setActiveNode('NOP')); }