function InstallerProfileRequirementsTest::testHookRequirementsFailure

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php \Drupal\FunctionalTests\Installer\InstallerProfileRequirementsTest::testHookRequirementsFailure()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php \Drupal\FunctionalTests\Installer\InstallerProfileRequirementsTest::testHookRequirementsFailure()
  3. 11.x 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 50

Class

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

Namespace

Drupal\FunctionalTests\Installer

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.