Skip to content
Snippets Groups Projects
Commit df655a66 authored by vpaladiychuk's avatar vpaladiychuk
Browse files

MAGETWO-34878: PR and cleanup

parent e8819b83
Branches
No related merge requests found
...@@ -238,7 +238,7 @@ class LoginTest extends \PHPUnit_Framework_TestCase ...@@ -238,7 +238,7 @@ class LoginTest extends \PHPUnit_Framework_TestCase
->expects($this->any()) ->expects($this->any())
->method('authenticate') ->method('authenticate')
->with('invalid@example.com', 'invalid') ->with('invalid@example.com', 'invalid')
->willThrowException(new InvalidEmailOrPasswordException(__('Invalid login or password.', []))); ->willThrowException(new InvalidEmailOrPasswordException(__('Invalid login or password.')));
$this->customerSession->expects($this->never()) $this->customerSession->expects($this->never())
->method('setCustomerDataAsLoggedIn') ->method('setCustomerDataAsLoggedIn')
......
...@@ -34,7 +34,7 @@ class PhraseTest extends \PHPUnit_Framework_TestCase ...@@ -34,7 +34,7 @@ class PhraseTest extends \PHPUnit_Framework_TestCase
$text = 'some text'; $text = 'some text';
$arguments = ['arg1', 'arg2']; $arguments = ['arg1', 'arg2'];
$result = 'rendered text'; $result = 'rendered text';
$phrase = new Phrase($text, $arguments); $phrase = new \Magento\Framework\Phrase($text, $arguments);
Phrase::setRenderer($this->rendererMock); Phrase::setRenderer($this->rendererMock);
$this->rendererMock->expects($this->once()) $this->rendererMock->expects($this->once())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment