56e7e245370bf6c208b74aa187f8e5c1f090f995
[yaffs-website] / web / core / tests / Drupal / FunctionalTests / Installer / InstallerProfileRequirementsTest.php
1 <?php
2
3 namespace Drupal\FunctionalTests\Installer;
4
5 /**
6  * Tests that an install profile can implement hook_requirements().
7  *
8  * @group Installer
9  */
10 class InstallerProfileRequirementsTest extends InstallerTestBase {
11
12   /**
13    * {@inheritdoc}
14    */
15   protected $profile = 'testing_requirements';
16
17   /**
18    * {@inheritdoc}
19    */
20   protected function setUpSettings() {
21     // This form will never be reached.
22   }
23
24   /**
25    * {@inheritdoc}
26    */
27   protected function setUpSite() {
28     // This form will never be reached.
29   }
30
31   /**
32    * Assert that the profile failed hook_requirements().
33    */
34   public function testHookRequirementsFailure() {
35     $this->assertSession()->pageTextContains('Testing requirements failed requirements.');
36   }
37
38 }