public function DeliveryCandidateTest::testConstruct in Message Subscribe 8
Test construction.
@covers ::__construct @covers ::getFlags @covers ::getNotifiers @covers ::getAccountId
File
- tests/
src/ Unit/ Subscribers/ DeliveryCandidateTest.php, line 26
Class
- DeliveryCandidateTest
- Unit tests for the delivery candidate class.
Namespace
Drupal\Tests\message_subscribe\Unit\SubscribersCode
public function testConstruct() {
$candidate = new DeliveryCandidate([
'foo',
], [
'bar',
], 123);
$this
->assertEquals([
'foo' => 'foo',
], $candidate
->getFlags());
$this
->assertEquals([
'bar' => 'bar',
], $candidate
->getNotifiers());
$this
->assertEquals(123, $candidate
->getAccountId());
}