Skip to content

Commit bad4ddb

Browse files
authored
Merge pull request #3081 from stof/fix_tests
Fix invalid mock in tests
2 parents ae4ce46 + 380f442 commit bad4ddb

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)