Skip to content

Commit 988883c

Browse files
author
Michail Slabko
committed
MAGETWO-35183: 500 Internal Server Error in case of excess "Maximum Qty Allowed in Shopping Cart" value
1 parent 0d580af commit 988883c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/Magento/Framework/Message/Test/Unit/AbstractMessageTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ public function setUp()
3131
* covers \Magento\Framework\Message\AbstractMessage::setText
3232
* @dataProvider setTextGetTextProvider
3333
*/
34-
public function testSetTextGetText($text)
34+
public function testSetTextGetText($text, $resultText)
3535
{
3636
$this->model->setText($text);
37-
$this->assertEquals($text, $this->model->getText());
37+
$this->assertEquals($resultText, $this->model->getText());
3838
}
3939

4040
/**
4141
* @return array
4242
*/
4343
public function setTextGetTextProvider()
4444
{
45-
return [[''], ['some text']];
45+
return [['', ''], ['some text', 'some text'], [new \Magento\Framework\Phrase('some text'), 'some text']];
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)