You are here

public function BackupDatabaseAdapterTest::testRemoteAdapter in Backup Database 8

@coversDefaultClass \Drupal\backup_db\Adapter\BackupDatabaseRemoteAdapter

File

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

Class

BackupDatabaseAdapterTest
Test BackupDatabaseAdapterInterface

Namespace

Drupal\Tests\backup_db\Unit

Code

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