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

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

    public function shouldConfigContainFactoryNameAndTitle()
    {
        $factory = new PaypalRestGatewayFactory();
        $config = $factory->createConfig();
        $this->assertInternalType('array', $config);
        $this->assertArrayHasKey('payum.factory_name', $config);
        $this->assertEquals('paypal_rest', $config['payum.factory_name']);
        $this->assertArrayHasKey('payum.factory_title', $config);
        $this->assertEquals('PayPal Rest', $config['payum.factory_title']);
    }