Payum\Paypal\ProHosted\Nvp\Tests\PaypalProHostedGatewayFactoryTest::shouldAllowCreateGateway PHP Метод

shouldAllowCreateGateway() публичный Метод

    public function shouldAllowCreateGateway()
    {
        $factory = new PaypalProHostedGatewayFactory();
        $gateway = $factory->create(array('business' => 'aBusiness', 'username' => 'aName', 'password' => 'aPass', 'signature' => 'aSign'));
        $this->assertInstanceOf('Payum\\Core\\Gateway', $gateway);
        $this->assertAttributeNotEmpty('apis', $gateway);
        $this->assertAttributeNotEmpty('actions', $gateway);
        $extensions = $this->readAttribute($gateway, 'extensions');
        $this->assertAttributeNotEmpty('extensions', $extensions);
    }