Payum\AuthorizeNet\Aim\Tests\Action\CaptureActionTest::shouldDoNothingIfResponseCodeSet PHP Method

shouldDoNothingIfResponseCodeSet() public method

    public function shouldDoNothingIfResponseCodeSet()
    {
        $api = $this->createAuthorizeNetAIMMock();
        $api->expects($this->never())->method('authorizeAndCapture');
        $gatewayMock = $this->createGatewayMock();
        $gatewayMock->expects($this->never())->method('execute');
        $action = new CaptureAction();
        $action->setApi($api);
        $action->setGateway($gatewayMock);
        $action->execute(new Capture(array('response_code' => 'foo')));
    }