public function SubscribersTest::setUp in Message Subscribe 8
Same name in this branch
- 8 tests/src/Unit/SubscribersTest.php \Drupal\Tests\message_subscribe\Unit\SubscribersTest::setUp()
- 8 tests/src/Kernel/SubscribersTest.php \Drupal\Tests\message_subscribe\Kernel\SubscribersTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ SubscribersTest.php, line 77
Class
- SubscribersTest
- Unit tests for the subscribers service.
Namespace
Drupal\Tests\message_subscribe\UnitCode
public function setUp() {
parent::setUp();
require __DIR__ . '/../fixture_foo.module.php';
// Setup default mock services. Individual tests can override as needed.
$this->flagService = $this
->prophesize(FlagServiceInterface::class)
->reveal();
$this->configFactory = $this
->prophesize(ConfigFactoryInterface::class)
->reveal();
$this->entityTypeManager = $this
->prophesize(EntityTypeManagerInterface::class)
->reveal();
$this->messageNotifier = $this
->prophesize(MessageNotifier::class)
->reveal();
$this->moduleHandler = $this
->prophesize(ModuleHandlerInterface::class)
->reveal();
$this->queue = $this
->prophesize(QueueFactory::class)
->reveal();
}