You are here

public function BackupDatabaseAdapterTest::testLocalAdapter in Backup Database 8

@coversDefaultClass \Drupal\backup_db\Adapter\BackupDatabaseLocalAdapter

File

tests/src/Unit/BackupDatabaseAdapterTest.php, line 38
Contains \Drupal\Tests\backup_db\Unit\BackupDatabaseAdapterTest

Class

BackupDatabaseAdapterTest
Test BackupDatabaseAdapterInterface

Namespace

Drupal\Tests\backup_db\Unit

Code

public function testLocalAdapter() {
  $client = \Drupal::service('backup_db.client');
  $this
    ->assertInstanceOf('Drupal\\backup_db\\Adapter\\BackupDatabaseAdapterInterface', new BackupDatabaseLocalAdapter($client));
}