19 lines
587 B
PHP
19 lines
587 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\Oceanpayment\Test\Unit\Model;
|
|
|
|
use Esun\Oceanpayment\Model\Config;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ConfigTest extends TestCase
|
|
{
|
|
public function testCurrentAndLegacyPaymentMethodsAreSupported(): void
|
|
{
|
|
self::assertTrue(Config::isSupportedMethod(Config::METHOD_CODE));
|
|
self::assertTrue(Config::isSupportedMethod(Config::ONEPAGE_METHOD_CODE));
|
|
self::assertTrue(Config::isSupportedMethod(Config::LEGACY_METHOD_CODE));
|
|
self::assertFalse(Config::isSupportedMethod('other_payment_method'));
|
|
}
|
|
}
|