Skip to content

Commit

Permalink
PR-882 Fix admin login exception test
Browse files Browse the repository at this point in the history
As exception message is not hardcoded and not overwritten by the controller anymore, its more precise.

Related #882

Signed-off-by: Anton Fedurtsya <anton@fedurtsya.com>
  • Loading branch information
Sieg committed Nov 9, 2021
1 parent 142322a commit 86757af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/Application/Controller/Admin/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function testLogin()
public function testLoginNotAdmin()
{
$this->expectException('oxException');
$this->expectExceptionMessage('LOGIN_ERROR');
$this->expectExceptionMessage('ERROR_MESSAGE_USER_NOVALIDLOGIN');

$oUser = oxNew("oxUser");
$oUser->setId("_testUserId");
Expand Down

0 comments on commit 86757af

Please sign in to comment.