Skip to content

Commit

Permalink
[Tests] Aligned tests with ezpublish-kernel LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Longosz committed Nov 7, 2017
1 parent 39288d8 commit 8b3e72e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Tests/Client/YooChooseNotifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use PHPUnit_Framework_TestCase;
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Psr7\Response;
use eZ\Publish\Core\Repository\Values\Content\Content;
use eZ\Publish\Core\Repository\Values\ContentType\ContentType;
use eZ\Publish\API\Repository\Values\Content\ContentInfo;
use EzSystems\RecommendationBundle\Client\YooChooseNotifier;
Expand Down Expand Up @@ -250,14 +249,10 @@ protected function getContentTypeServiceMock($contentTypeId)
*/
protected function getRepositoryServiceMock($identifier)
{
$repositoryInterfaceServiceMock = $this->getMock('eZ\Publish\API\Repository\Repository');
$signalDispatcherServiceMock = $this->getMock('eZ\Publish\Core\SignalSlot\SignalDispatcher');

$repositoryServiceMock = $this->getMock(
'eZ\Publish\Core\SignalSlot\Repository',
array('sudo', 'getContentService', 'getContentTypeService'),
array($repositoryInterfaceServiceMock, $signalDispatcherServiceMock)
);
$repositoryServiceMock = $this
->getMockBuilder('\eZ\Publish\Core\SignalSlot\Repository')
->disableOriginalConstructor()
->getMock();

$repositoryServiceMock
->expects($this->any())
Expand Down

0 comments on commit 8b3e72e

Please sign in to comment.