Skip to content

Commit 380f442

Browse files
committed
Fix invalid mock in tests
1 parent ae4ce46 commit 380f442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Doctrine/UserManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testGetClass()
8080
public function testFindUserBy()
8181
{
8282
$crit = ['foo' => 'bar'];
83-
$this->repository->expects($this->once())->method('findOneBy')->with($this->equalTo($crit))->will($this->returnValue([]));
83+
$this->repository->expects($this->once())->method('findOneBy')->with($this->equalTo($crit))->will($this->returnValue(null));
8484

8585
$this->userManager->findUserBy($crit);
8686
}

0 commit comments

Comments
 (0)