From 9090ac6fb9c225abbffe73fcdbdc40f87ffa1a21 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 26 Dec 2014 09:49:35 +0100 Subject: [PATCH] Fixed broken test --- tests/Services/PostServiceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Services/PostServiceTest.php b/tests/Services/PostServiceTest.php index 0952bdd1..aab63940 100644 --- a/tests/Services/PostServiceTest.php +++ b/tests/Services/PostServiceTest.php @@ -195,7 +195,7 @@ final class PostServiceTest extends AbstractDatabaseTestCase $formData->anonymous = true; $this->postDaoMock->expects($this->once())->method('save')->will($this->returnArgument(0)); - $this->authServiceMock->expects($this->never())->method('getLoggedInUser'); + $this->authServiceMock->expects($this->once())->method('loginAnonymous'); $this->postHistoryServiceMock->expects($this->once())->method('savePostCreation')->willReturn(new Snapshot()); $this->postService = $this->getPostService();