You are here

protected function UpgradeConfigTest::installFixture in Commerce Authorize.Net 8

Installs the test fixture.

Parameters

string $path: The path to the db-tools test fixture.

Throws

\Exception

2 calls to UpgradeConfigTest::installFixture()
UpgradeConfigTest::testClientKeyMessage in tests/src/Kernel/UpgradeConfigTest.php
Tests the client key message.
UpgradeConfigTest::testPreAcceptJsUpgrade in tests/src/Kernel/UpgradeConfigTest.php
Tests upgrading from c65e90993f8b4919ed427043ace4e960202092e0.

File

tests/src/Kernel/UpgradeConfigTest.php, line 98

Class

UpgradeConfigTest
Tests config upgrades / post updates.

Namespace

Drupal\Tests\commerce_authnet\Kernel

Code

protected function installFixture($path) {
  $connection = $this->container
    ->get('database');
  $schema = $connection
    ->schema();
  $tables = $schema
    ->findTables('%');
  foreach ($tables as $table) {
    $schema
      ->dropTable($table);
  }
  $this
    ->loadFixture($path);
}