You are here

public function InstallerProfileRequirementsTest::testHookRequirementsFailure in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php \Drupal\FunctionalTests\Installer\InstallerProfileRequirementsTest::testHookRequirementsFailure()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php \Drupal\FunctionalTests\Installer\InstallerProfileRequirementsTest::testHookRequirementsFailure()

Assert that the profile failed hook_requirements().

File

core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php, line 39

Class

InstallerProfileRequirementsTest
Tests that an install profile can implement hook_requirements().

Namespace

Drupal\FunctionalTests\Installer

Code

public function testHookRequirementsFailure() {
  $this
    ->assertSession()
    ->pageTextContains('Testing requirements failed requirements.');
}