AcMailerTest\Controller\Plugin\SendMailPluginAbstractFactoryTest::testCreateServiceWithName PHP Метод

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

    public function testCreateServiceWithName()
    {
        $sm = $this->createServiceManager();
        $mailServiceName = sprintf('%s.%s.%s', MailServiceAbstractFactory::ACMAILER_PART, MailServiceAbstractFactory::SPECIFIC_PART, 'concrete');
        $sm->setService($mailServiceName, new MailServiceMock());
        $this->assertInstanceOf(SendMailPlugin::class, $this->factory->__invoke($sm, 'sendMailConcrete'));
    }