SermepaGatewayOnNotifyTest.php in Commerce sermepa 8.2
File
tests/src/Functional/SermepaGatewayOnNotifyTest.php
View source
<?php
namespace Drupal\Tests\commerce_sermepa\Functional;
use Drupal\Tests\commerce\Functional\CommerceBrowserTestBase;
class SermepaGatewayOnNotifyTest extends CommerceBrowserTestBase {
protected $paymentGateway;
public static $modules = [
'commerce_sermepa',
];
protected function setUp() : void {
parent::setUp();
$this->paymentGateway = $this
->createEntity('commerce_payment_gateway', [
'id' => 'commerce_sermepa',
'label' => 'Commerce Sermepa',
'plugin' => 'commerce_sermepa',
]);
}
public function testSermepaGatewayNotifyRuote() {
$this
->drupalGet('/payment/notify/' . $this->paymentGateway
->id());
$this
->assertSession()
->statusCodeEquals(200);
}
}