-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
…ationService::sendNotification calls
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,35 @@ | |
|
||
use eZ\Publish\API\Repository\ContentService; | ||
use eZ\Publish\API\Repository\LocationService; | ||
use eZ\Publish\API\Repository\SearchService; | ||
use eZ\Publish\Core\Query\QueryFactoryInterface; | ||
use EzSystems\EzRecommendationClient\Helper\ContentHelper; | ||
use EzSystems\EzRecommendationClient\Helper\LocationHelper; | ||
use EzSystems\EzRecommendationClient\Service\EventNotificationService; | ||
|
||
abstract class AbstractRepositoryEventSubscriberTest extends AbstractCoreEventSubscriberTest | ||
{ | ||
/** @var \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\API\Repository\ContentService */ | ||
/** @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\API\Repository\ContentService */ | ||
protected $contentServiceMock; | ||
|
||
/** @var \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\API\Repository\LocationService */ | ||
/** @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\API\Repository\LocationService */ | ||
protected $locationServiceMock; | ||
|
||
/** @var \PHPUnit\Framework\MockObject\MockObject|\EzSystems\EzRecommendationClient\Helper\LocationHelper */ | ||
/** @var \PHPUnit\Framework\MockObject\MockObject&\EzSystems\EzRecommendationClient\Helper\LocationHelper */ | ||
protected $locationHelperMock; | ||
Check failure on line 28 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.1)
Check failure on line 28 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.0)
Check failure on line 28 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.4)
Check failure on line 28 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.3)
|
||
|
||
/** @var \PHPUnit\Framework\MockObject\MockObject|\EzSystems\EzRecommendationClient\Helper\ContentHelper */ | ||
/** @var \PHPUnit\Framework\MockObject\MockObject&\EzSystems\EzRecommendationClient\Helper\ContentHelper */ | ||
protected $contentHelperMock; | ||
Check failure on line 31 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.1)
Check failure on line 31 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.0)
Check failure on line 31 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.4)
Check failure on line 31 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.3)
|
||
|
||
/** @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\Core\Query\QueryFactoryInterface */ | ||
protected $queryFactoryMock; | ||
|
||
/** @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\API\Repository\SearchService */ | ||
protected $searchServiceMock; | ||
|
||
/** @var \PHPUnit\Framework\MockObject\MockObject&\EzSystems\EzRecommendationClient\Service\EventNotificationService */ | ||
protected $notificationServiceMock; | ||
Check failure on line 40 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.1)
Check failure on line 40 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.0)
Check failure on line 40 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.4)
Check failure on line 40 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.3)
|
||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
@@ -35,5 +47,8 @@ public function setUp(): void | |
$this->locationServiceMock = $this->createMock(LocationService::class); | ||
$this->locationHelperMock = $this->createMock(LocationHelper::class); | ||
Check failure on line 48 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.1)
Check failure on line 48 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.0)
Check failure on line 48 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.4)
Check failure on line 48 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.3)
|
||
$this->contentHelperMock = $this->createMock(ContentHelper::class); | ||
$this->queryFactoryMock = $this->createMock(QueryFactoryInterface::class); | ||
$this->searchServiceMock = $this->createMock(SearchService::class); | ||
$this->notificationServiceMock = $this->createMock(EventNotificationService::class); | ||
Check failure on line 52 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.1)
Check failure on line 52 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (8.0)
Check failure on line 52 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php GitHub Actions / Tests (7.4)
|
||
} | ||
} |