AcMailerTest\Service\MailServiceAbstractFactoryTest::testAdapterAsInstance PHP Method

testAdapterAsInstance() public method

    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());
    }