diff --git a/tests/Doctrine/UserManagerTest.php b/tests/Doctrine/UserManagerTest.php index 41a30dc9d..ed9bf9f37 100644 --- a/tests/Doctrine/UserManagerTest.php +++ b/tests/Doctrine/UserManagerTest.php @@ -80,7 +80,7 @@ public function testGetClass() public function testFindUserBy() { $crit = ['foo' => 'bar']; - $this->repository->expects($this->once())->method('findOneBy')->with($this->equalTo($crit))->will($this->returnValue([])); + $this->repository->expects($this->once())->method('findOneBy')->with($this->equalTo($crit))->will($this->returnValue(null)); $this->userManager->findUserBy($crit); }