Beispiel #1
0
 public function testGetValidatedAtText()
 {
     $validatedAt = date('Y-m-d');
     Mage::clearRegistry();
     Mage::register('current_account', new Varien_Object(array('validated_at' => $validatedAt)));
     $result = $this->_object->getValidatedAtText();
     $this->assertEquals("Valid Authorization Token.<br/>Valid until {$validatedAt}", $result);
     Mage::clearRegistry();
     Mage::register('current_account', new Varien_Object(array('validation_expired' => 1)));
     $result = $this->_object->getValidatedAtText();
     $this->assertEquals('<span class="error">Expired</span>', $result);
 }
Beispiel #2
0
 public function testController()
 {
     $text = $this->_object->getHeaderCssClass();
     $this->assertEquals('head-adminhtml-ebay-channel', $text);
 }