Skip to content

Commit 66e6ad6

Browse files
committed
MAGETWO-46014: delayed error messages
1 parent 3120b1e commit 66e6ad6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Theme/Controller/Result/MessagePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function getMessages()
9999
$messages = $this->getCookiesMessages();
100100
/** @var MessageInterface $message */
101101
foreach ($this->messageManager->getMessages(true)->getItems() as $message) {
102-
$messages []= [
102+
$messages[] = [
103103
'type' => $message->getType(),
104104
'text' => $this->interpretationStrategy->interpret($message),
105105
];

dev/tests/integration/framework/Magento/TestFramework/TestCase/AbstractController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function assertRedirect(\PHPUnit_Framework_Constraint $urlConstraint = nu
182182
}
183183
}
184184

185-
/**ishlist/Controller/IndexTest
185+
/**
186186
* Assert that actual session messages meet expectations:
187187
* Usage examples:
188188
* $this->assertSessionMessages($this->isEmpty(), \Magento\Framework\Message\MessageInterface::TYPE_ERROR);

dev/tests/integration/testsuite/Magento/Paypal/Adminhtml/Paypal/ReportsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testFetchAction()
2323
{
2424
$this->dispatch('backend/paypal/paypal_reports/fetch');
2525
$this->assertSessionMessages(
26-
$this->equalTo(['We can\'t fetch reports from "[email protected]."']),
26+
$this->equalTo(['We can\'t fetch reports from "[email protected]."']),
2727
\Magento\Framework\Message\MessageInterface::TYPE_ERROR
2828
);
2929
}

0 commit comments

Comments
 (0)