summaryrefslogtreecommitdiff
path: root/tests/Unit/Mail/Transport/TransportTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Mail/Transport/TransportTest.php')
-rw-r--r--tests/Unit/Mail/Transport/TransportTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Unit/Mail/Transport/TransportTest.php b/tests/Unit/Mail/Transport/TransportTest.php
index 60f2079d..5e7b7b9b 100644
--- a/tests/Unit/Mail/Transport/TransportTest.php
+++ b/tests/Unit/Mail/Transport/TransportTest.php
@@ -5,6 +5,7 @@ namespace Engelsystem\Test\Unit\Mail\Transport;
use Engelsystem\Test\Unit\Mail\Transport\Stub\TransportImplementation;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
+use Swift_Events_EventListener;
use Swift_Mime_SimpleMessage as SimpleMessage;
class TransportTest extends TestCase
@@ -12,13 +13,24 @@ class TransportTest extends TestCase
/**
* @covers \Engelsystem\Mail\Transport\Transport::isStarted
* @covers \Engelsystem\Mail\Transport\Transport::ping
+ * @covers \Engelsystem\Mail\Transport\Transport::registerPlugin
+ * @covers \Engelsystem\Mail\Transport\Transport::start
+ * @covers \Engelsystem\Mail\Transport\Transport::stop
*/
public function testMethods()
{
+ /** @var Swift_Events_EventListener|MockObject $plugin */
+ $plugin = $this->getMockForAbstractClass(Swift_Events_EventListener::class);
+
$transport = new TransportImplementation();
+ $transport->start();
+ $transport->registerPlugin($plugin);
+
$this->assertTrue($transport->isStarted());
$this->assertTrue($transport->ping());
+
+ $transport->stop();
}
/**