You are here

public function BackupDatabaseAdapterTest::setUp in Backup Database 8

Overrides UnitTestCase::setUp

File

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

Class

BackupDatabaseAdapterTest
Test BackupDatabaseAdapterInterface

Namespace

Drupal\Tests\backup_db\Unit

Code

public function setUp() {
  parent::setUp();
  $container = new ContainerBuilder();
  $client = $this
    ->prophesize('Drupal\\backup_db\\BackupDatabaseClient');
  $container
    ->set('backup_db.client', $client
    ->reveal());
  \Drupal::setContainer($container);
}