Skip to content

Commit

Permalink
MAGETWO-46014: delayed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
slavvka committed May 17, 2016
1 parent 3120b1e commit 66e6ad6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Theme/Controller/Result/MessagePlugin.php
Expand Up @@ -99,7 +99,7 @@ protected function getMessages()
$messages = $this->getCookiesMessages();
/** @var MessageInterface $message */
foreach ($this->messageManager->getMessages(true)->getItems() as $message) {
$messages []= [
$messages[] = [
'type' => $message->getType(),
'text' => $this->interpretationStrategy->interpret($message),
];
Expand Down
Expand Up @@ -182,7 +182,7 @@ public function assertRedirect(\PHPUnit_Framework_Constraint $urlConstraint = nu
}
}

/**ishlist/Controller/IndexTest
/**
* Assert that actual session messages meet expectations:
* Usage examples:
* $this->assertSessionMessages($this->isEmpty(), \Magento\Framework\Message\MessageInterface::TYPE_ERROR);
Expand Down
Expand Up @@ -23,7 +23,7 @@ public function testFetchAction()
{
$this->dispatch('backend/paypal/paypal_reports/fetch');
$this->assertSessionMessages(
$this->equalTo(['We can\'t fetch reports from "login@127.0.0.1."']),
$this->equalTo(['We can\'t fetch reports from "login@127.0.0.1."']),
\Magento\Framework\Message\MessageInterface::TYPE_ERROR
);
}
Expand Down

0 comments on commit 66e6ad6

Please sign in to comment.