You are here

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

Loads a database fixture into the source database connection.

Parameters

string $path: Path to the dump file.

1 call to UpgradeConfigTest::loadFixture()
UpgradeConfigTest::installFixture in tests/src/Kernel/UpgradeConfigTest.php
Installs the test fixture.

File

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

Class

UpgradeConfigTest
Tests config upgrades / post updates.

Namespace

Drupal\Tests\commerce_authnet\Kernel

Code

protected function loadFixture($path) {
  if (substr($path, -3) == '.gz') {
    $path = 'compress.zlib://' . $path;
  }
  require $path;
}