Payum\Paypal\Masspay\Nvp\Tests\PaypalMasspayGatewayFactoryTest::shouldAllowCreateGateway PHP Method

shouldAllowCreateGateway() public method

    public function shouldAllowCreateGateway()
    {
        $factory = new PaypalMasspayGatewayFactory();
        $gateway = $factory->create(array('username' => 'aName', 'password' => 'aPass', 'signature' => 'aSign'));
        $this->assertInstanceOf(Gateway::class, $gateway);
        $this->assertAttributeNotEmpty('apis', $gateway);
        $this->assertAttributeNotEmpty('actions', $gateway);
        $extensions = $this->readAttribute($gateway, 'extensions');
        $this->assertAttributeNotEmpty('extensions', $extensions);
    }