You are here

public function ConfigInstallProfileUnmetDependenciesTest::testInstalled in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/config/src/Tests/ConfigInstallProfileUnmetDependenciesTest.php \Drupal\config\Tests\ConfigInstallProfileUnmetDependenciesTest::testInstalled()

Confirms that the installation succeeded.

File

core/modules/config/src/Tests/ConfigInstallProfileUnmetDependenciesTest.php, line 91
Contains \Drupal\config\Tests\ConfigInstallProfileUnmetDependenciesTest.

Class

ConfigInstallProfileUnmetDependenciesTest
Tests install profile config overrides can not add unmet dependencies.

Namespace

Drupal\config\Tests

Code

public function testInstalled() {
  if ($this->expectedException) {
    $this
      ->pass('Expected Drupal\\Core\\Config\\UnmetDependenciesException exception thrown');
  }
  else {
    $this
      ->fail('Expected Drupal\\Core\\Config\\UnmetDependenciesException exception thrown');
  }
  $this
    ->assertErrorLogged('Configuration objects (system.action.user_block_user_action) provided by user have unmet dependencies in');
}