You are here

protected function SubscribersTest::getSubscriberService in Message Subscribe 8

Helper to generate a new subscriber service with mock services.

Return value

\Drupal\message_subscribe\SubscribersInterface The subscribers service object.

2 calls to SubscribersTest::getSubscriberService()
SubscribersTest::testGetFlags in tests/src/Unit/SubscribersTest.php
Test the getFlags method.
SubscribersTest::testSendMessage in tests/src/Unit/SubscribersTest.php
Test the sendMessage method.

File

tests/src/Unit/SubscribersTest.php, line 102

Class

SubscribersTest
Unit tests for the subscribers service.

Namespace

Drupal\Tests\message_subscribe\Unit

Code

protected function getSubscriberService() {
  return new Subscribers($this->flagService, $this->configFactory, $this->entityTypeManager, $this->messageNotifier, $this->moduleHandler, $this->queue);
}