AcMailerTest\Service\MailServiceAbstractFactoryTest::testAdapterAsInstance PHP Метод

testAdapterAsInstance() публичный Метод

    public function testAdapterAsInstance()
    {
        $expected = new Sendmail();
        $this->initServiceLocator(['mail_adapter' => $expected]);
        $mailService = $this->mailServiceFactory->__invoke($this->serviceLocator, 'acmailer.mailservice.default');
        $this->assertSame($expected, $mailService->getTransport());
    }