woocommerce-paypal-payments/tests/PHPUnit/ApiClient/Repository/PayeeRepositoryTest.php

21 lines
538 B
PHP
Raw Normal View History

2020-08-31 13:38:54 +03:00
<?php
declare(strict_types=1);
2020-09-14 07:51:45 +03:00
namespace WooCommerce\PayPalCommerce\ApiClient\Repository;
2020-08-31 13:38:54 +03:00
2022-02-09 16:28:27 +02:00
use WooCommerce\PayPalCommerce\TestCase;
2020-08-31 13:38:54 +03:00
class PayeeRepositoryTest extends TestCase
{
public function testDefault()
{
$merchantEmail = 'merchant_email';
$merchantId = 'merchant_id';
$testee = new PayeeRepository($merchantEmail, $merchantId);
$payee = $testee->payee();
2020-09-01 09:47:36 +03:00
$this->assertEquals($merchantId, $payee->merchant_id());
2020-08-31 13:38:54 +03:00
$this->assertEquals($merchantEmail, $payee->email());
}
}