From 380f442241a1fc00a555e5691c9963977f4eafac Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Tue, 25 Jun 2024 10:15:22 +0200 Subject: [PATCH] Fix invalid mock in tests --- tests/Doctrine/UserManagerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }