Payum\Paypal\Rest\Tests\PaypalRestGatewayFactoryTest::shouldAllowCreateGatewayWithCustomApi PHP Метод

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

    public function shouldAllowCreateGatewayWithCustomApi()
    {
        $factory = new PaypalRestGatewayFactory();
        $gateway = $factory->create(['payum.api' => new \stdClass()]);
        $this->assertInstanceOf(Gateway::class, $gateway);
        $this->assertAttributeNotEmpty('apis', $gateway);
        $this->assertAttributeNotEmpty('actions', $gateway);
        $extensions = $this->readAttribute($gateway, 'extensions');
        $this->assertAttributeNotEmpty('extensions', $extensions);
    }