Bolt\Tests\BoltUnitTest::getMockSwiftMailer PHP Method

getMockSwiftMailer() protected method

protected getMockSwiftMailer ( array $methods = ['send'] ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Swift_Maile\Swift_Mailer
$methods array
return PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Swift_Maile\Swift_Mailer
    protected function getMockSwiftMailer($methods = ['send'])
    {
        return $this->getMockBuilder(Swift_Mailer::class)->setMethods($methods)->setConstructorArgs([$this->app['swiftmailer.transport']])->getMock();
    }