[Notifier][Free Mobile] Tests
This commit is contained in:
parent
ec09d68df1
commit
f7d5c48313
@ -33,7 +33,7 @@ final class FreeMobileTransportTest extends TestCase
|
||||
|
||||
$this->assertTrue($transport->supports(new SmsMessage('0611223344', 'Hello!')));
|
||||
$this->assertFalse($transport->supports(new SmsMessage('0699887766', 'Hello!')));
|
||||
$this->assertFalse($transport->supports($this->createMock(MessageInterface::class), 'Hello!'));
|
||||
$this->assertFalse($transport->supports($this->createMock(MessageInterface::class)));
|
||||
}
|
||||
|
||||
public function testSendNonSmsMessageThrowsException(): void
|
||||
@ -42,6 +42,15 @@ final class FreeMobileTransportTest extends TestCase
|
||||
|
||||
$this->expectException(LogicException::class);
|
||||
|
||||
$transport->send($this->createMock(MessageInterface::class));
|
||||
}
|
||||
|
||||
public function testSendSmsMessageButInvalidPhoneThrowsException(): void
|
||||
{
|
||||
$transport = $this->initTransport();
|
||||
|
||||
$this->expectException(LogicException::class);
|
||||
|
||||
$transport->send(new SmsMessage('0699887766', 'Hello!'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user