You are here

public function SquareApiIntegrationTest::testGetApiClient in Commerce Square Connect 8

Tests that an API client can be retrieved from gateway plugin.

File

tests/src/Kernel/SquareApiIntegrationTest.php, line 89

Class

SquareApiIntegrationTest
Tests the Square SDK integration with Commerce.

Namespace

Drupal\Tests\commerce_square\Kernel

Code

public function testGetApiClient() {
  $plugin = $this->gateway
    ->getPlugin();
  $this
    ->assertInstanceOf(Square::class, $plugin);
  $this
    ->assertInstanceOf(ApiClient::class, $plugin
    ->getApiClient());
}