Source of file NotificationEmailProviderTest.php
Size: 0,858 Bytes - Last Modified: 2021-12-23T10:59:15+00:00
/var/www/docs.ssmods.com/process/src/tests/Providers/NotificationEmailProviderTest.php
1234567891011121314151617181920212223242526272829303132 | <?php /** * Test registion for Immunoglobin */ class NotificationEmailProviderTest extends SapphireTest { protected $usesDatabase = true; protected static $fixture_file = 'NotificationParserTest.yml'; public function testSend() { $provider = new NotificationEmailProvider(); $provider->send(new MockParsedNotification(), $this->objFromFixture('Member', 'tms')); $this->assertEmailSent( 'tms@nzblood.co.nz', null, 'Mock subject response', '/Mock rich message response/' ); } public function testFailedParse() { $this->setExpectedException(NotificationFailureException::class); $provider = new NotificationEmailProvider(); $provider->send(new MockBadParsedNotification(), $this->objFromFixture('Member', 'tms')); } } |