Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests to work with new tryLogin call structure
  • Loading branch information
Friedrich Weber authored and karakayasemi committed Aug 9, 2017
commit 1170cf4f06e4c4a72fec4f2931f84a9e26b3e884
14 changes: 6 additions & 8 deletions tests/Core/Controller/LoginControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,8 @@ public function testLoginWithValidCredentials() {
->method('login')
->with($user, $password)
->will($this->returnValue(true));
$this->userManager->expects($this->once())
->method('get')
->with($user)
$this->userSession->expects($this->once())
->method('getUser')
->will($this->returnValue($user));
$this->userSession->expects($this->once())
->method('createSessionToken')
Expand Down Expand Up @@ -381,9 +380,8 @@ public function testLoginWithValidCredentialsAndRedirectUrl() {
->method('login')
->with('Jane', $password)
->will($this->returnValue(true));
$this->userManager->expects($this->once())
->method('get')
->with('Jane')
$this->userSession->expects($this->once())
->method('getUser')
->will($this->returnValue($user));
$this->userSession->expects($this->once())
->method('createSessionToken')
Expand Down Expand Up @@ -413,8 +411,8 @@ public function testLoginWithTwoFactorEnforced() {
$this->userSession->expects($this->once())
->method('login')
->will($this->returnValue(true));
$this->userManager->expects($this->once())
->method('get')
$this->userSession->expects($this->once())
->method('getUser')
->will($this->returnValue($user));
$this->userSession->expects($this->once())
->method('login')
Expand Down