Esempio n. 1
0
 /**
  * @covers Mage_Selenium_TestCase::addVerificationMessage
  * @covers Mage_Selenium_TestCase::getParsedMessages
  */
 public function testAddGetVerificationMessage()
 {
     $instance = new Mage_Selenium_TestCase();
     $instance->clearMessages();
     $instance->assertEmptyVerificationErrors();
     $this->assertEmpty($instance->getParsedMessages('verification'));
     $message1 = 'Verification message';
     $instance->addVerificationMessage($message1);
     $this->assertEquals($instance->getParsedMessages('verification'), array($message1));
     $message2 = 'Second verification message';
     $instance->addVerificationMessage($message2);
     $this->assertEquals($instance->getParsedMessages('verification'), array($message1, $message2));
 }