init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user