Payum\Paypal\Rest\Tests\PaypalRestGatewayFactoryTest::shouldAllowCreateGateway PHP Method

shouldAllowCreateGateway() public method

    public function shouldAllowCreateGateway()
    {
        $factory = new PaypalRestGatewayFactory();
        $gateway = $factory->create(['client_id' => 'cId', 'client_secret' => 'cSecret', 'config_path' => __DIR__]);
        $this->assertInstanceOf(Gateway::class, $gateway);
        $this->assertAttributeNotEmpty('apis', $gateway);
        $this->assertAttributeNotEmpty('actions', $gateway);
        $extensions = $this->readAttribute($gateway, 'extensions');
        $this->assertAttributeNotEmpty('extensions', $extensions);
    }