AcMailerTest\Controller\Plugin\SendMailPluginTest::testMailServiceAwareness PHP Метод

testMailServiceAwareness() публичный метод

    public function testMailServiceAwareness()
    {
        $this->assertSame($this->service, $this->plugin->getMailService());
        $anotherService = new MailServiceMock();
        $this->assertSame($this->plugin, $this->plugin->setMailService($anotherService));
        $this->assertSame($anotherService, $this->plugin->getMailService());
    }