/** * @test */ public function shouldNotInitializeStorageExtensionsOnGetGatewaysIfNotGenericGateway() { $storageOneMock = $this->getMock('Payum\\Core\\Storage\\StorageInterface'); $gatewayFooMock = $this->getMock('Payum\\Core\\GatewayInterface'); $gatewayBarMock = $this->getMock('Payum\\Core\\Gateway'); $registry = new SimpleRegistry(array('foo' => $gatewayFooMock, 'bar' => $gatewayBarMock), array('fooClass' => $storageOneMock)); $registry->getGateways(); }