$this->app['mailer'] = $this->mailer = $this->getMockBuilder('\Swift_Mailer')->disableOriginalConstructor()->getMock();
Swift_Mailer is a service now, it assigned on container, I can not set the mock of Swift_Mailer to container on run time. Container was freeze mode.
概要(Overview)
期待する内容(Expect) or 要望 (Requirement)
Swift_Mailer is a service now, it assigned on container, I can not set the mock of Swift_Mailer to container on run time. Container was freeze mode.
再現手順(Procedure)
環境 (environment)
関連情報 (Ref)
https://github.com/eccubevn/mail-magazine-plugin/blob/master/Tests/Service/MailMagazineServiceTest.php#L23
https://github.com/eccubevn/mail-magazine-plugin/blob/master/Tests/Service/MailMagazineServiceTest.php#L576