Fixed broken test

This commit is contained in:
Marcin Kurczewski 2014-12-26 09:49:35 +01:00
parent eb77b6811a
commit 9090ac6fb9

View file

@ -195,7 +195,7 @@ final class PostServiceTest extends AbstractDatabaseTestCase
$formData->anonymous = true; $formData->anonymous = true;
$this->postDaoMock->expects($this->once())->method('save')->will($this->returnArgument(0)); $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->postHistoryServiceMock->expects($this->once())->method('savePostCreation')->willReturn(new Snapshot());
$this->postService = $this->getPostService(); $this->postService = $this->getPostService();