/** * @test */ public function shouldDoNothingIfActionNotImplementsGenericTokenFactoryAwareInterface() { $tokenFactory = $this->createGenericTokenFactoryMock(); $extension = new GenericTokenFactoryExtension($tokenFactory); $action = $this->createActionMock(); $context = new Context($this->createGatewayMock(), new \stdClass(), array()); $context->setAction($action); $extension->onExecute($context); }
/** * @test */ public function shouldDoNothingIfActionNotImplementsGenericTokenFactoryAwareInterface() { $tokenFactory = $this->createGenericTokenFactoryMock(); $extension = new GenericTokenFactoryExtension($tokenFactory); $action = $this->createActionMock(); $extension->onExecute(new \stdClass(), $action); }