public function testConfiguratorSetsMailTransportByDefault()
{
$modulesSettingsMock = $this->getModulesSettingsMock();
$containerMock = $this->getContainerMock();
$configurator = new Configurator($modulesSettingsMock, $containerMock);
// always return null: we have no modules settings set
$modulesSettingsMock->expects($this->exactly(6))->method('get')->will($this->returnValue(null));
// we want our set method to be called with a Mail transport
$containerMock->expects($this->once())->method('set')->with($this->equalTo('swiftmailer.mailer.default.transport'), $this->isInstanceOf('\\Swift_MailTransport'));
$configurator->onKernelRequest($this->getGetResponseEventMock());
}