userRef example

use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\GatewayApi\GatewayApiOptions;

class GatewayApiOptionsTest extends TestCase
{
    public function testGatewayApiOptions()
    {
        $gatewayApiOptions = (new GatewayApiOptions())
            ->class('test_class')
            ->callbackUrl('test_callback_url')
            ->userRef('test_user_ref');

        self::assertSame([
            'class' => 'test_class',
            'callback_url' => 'test_callback_url',
            'userref' => 'test_user_ref',
        ]$gatewayApiOptions->toArray());
    }
}
Home | Imprint | This part of the site doesn't use cookies.