Payum\Paypal\ExpressCheckout\Nvp\Tests\Action\CaptureActionTest::shouldNotAddNotifyUrlIfCaptureTokenNotSet PHP Method

shouldNotAddNotifyUrlIfCaptureTokenNotSet() public method

    public function shouldNotAddNotifyUrlIfCaptureTokenNotSet()
    {
        $details = new \ArrayObject();
        $tokenFactoryMock = $this->getMock(GenericTokenFactoryInterface::class);
        $tokenFactoryMock->expects($this->never())->method('createNotifyToken');
        $action = new CaptureAction();
        $action->setGateway($this->createGatewayMock());
        $action->setGenericTokenFactory($tokenFactoryMock);
        $action->execute(new Capture($details));
        $this->assertNotEmpty($details);
        $this->assertArrayNotHasKey('PAYMENTREQUEST_0_NOTIFYURL', $details);
    }