diff --git a/core/profiles/demo_umami/config/install/image.style.max_1300x1300.yml b/core/profiles/demo_umami/config/install/image.style.max_1300x1300.yml index 9472bc0..edd1e13 100644 --- a/core/profiles/demo_umami/config/install/image.style.max_1300x1300.yml +++ b/core/profiles/demo_umami/config/install/image.style.max_1300x1300.yml @@ -1,11 +1,6 @@ langcode: en status: true -dependencies: - module: - - responsive_image - enforced: - module: - - responsive_image +dependencies: { } name: max_1300x1300 label: 'Max 1300x1300' effects: diff --git a/core/profiles/demo_umami/config/install/image.style.max_2600x2600.yml b/core/profiles/demo_umami/config/install/image.style.max_2600x2600.yml index c6c7065..ba1fe2f 100644 --- a/core/profiles/demo_umami/config/install/image.style.max_2600x2600.yml +++ b/core/profiles/demo_umami/config/install/image.style.max_2600x2600.yml @@ -1,11 +1,6 @@ langcode: en status: true -dependencies: - module: - - responsive_image - enforced: - module: - - responsive_image +dependencies: { } name: max_2600x2600 label: 'Max 2600x2600' effects: diff --git a/core/profiles/demo_umami/config/install/image.style.max_325x325.yml b/core/profiles/demo_umami/config/install/image.style.max_325x325.yml index e6bc09b..bef84fd 100644 --- a/core/profiles/demo_umami/config/install/image.style.max_325x325.yml +++ b/core/profiles/demo_umami/config/install/image.style.max_325x325.yml @@ -1,10 +1,6 @@ langcode: en -dependencies: - module: - - responsive_image - enforced: - module: - - responsive_image +status: true +dependencies: { } name: max_325x325 label: 'Max 325x325' effects: diff --git a/core/profiles/demo_umami/config/install/image.style.max_650x650.yml b/core/profiles/demo_umami/config/install/image.style.max_650x650.yml index 87b47f7..12d757f 100644 --- a/core/profiles/demo_umami/config/install/image.style.max_650x650.yml +++ b/core/profiles/demo_umami/config/install/image.style.max_650x650.yml @@ -1,10 +1,6 @@ langcode: en -dependencies: - module: - - responsive_image - enforced: - module: - - responsive_image +status: true +dependencies: { } name: max_650x650 label: 'Max 650x650' effects: diff --git a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php index 2ffd883..13ed53e 100644 --- a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php +++ b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php @@ -9,13 +9,21 @@ use Drupal\Tests\BrowserTestBase; /** - * Tests default configuration for the profile. + * Tests demo_umami profile. * * @group demo_umami */ -class DemoUmamiProfileConfigTest extends BrowserTestBase { +class DemoUmamiProfileTest extends BrowserTestBase { use AssertConfigTrait; + /** + * {@inheritdoc} + */ + protected $profile = 'demo_umami'; + + /** + * {@inheritdoc} + */ protected function installParameters() { $parameters = parent::installParameters(); $parameters['forms']['install_configure_form']['site_mail'] = 'admin@example.com'; @@ -23,9 +31,23 @@ protected function installParameters() { } /** - * {@inheritdoc} + * Tests demo_umami profile warnings shown on Status Page. */ - public function testWarningsOnStatusPage() {} + public function testWarningsOnStatusPage() { + $account = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($account); + + // Check the requirements warning for using an experimental profile. + $this->drupalGet('admin/reports/status'); + $assert = $this->assertSession(); + $assert->pageTextContains('Demo Umami is an experimental profile to be used for demonstration purposes only, and should not be used for a production/live site. To start building a new site, you should re-install Drupal and choose another profile, for example "Standard".'); + + // Check the requirements error for the version of Drupal being updated. + // Change the stored installed version of Drupal. + \Drupal::state()->set('demo_umami_drupal_version', \Drupal::VERSION . '1'); + $this->drupalGet('admin/reports/status'); + $assert->pageTextContains('Drupal has been updated since this demo was installed, which could cause issues with this site. It is recommended that you re-install the demo to evaluate the latest changes.'); + } /** * Tests the profile supplied configuration is the same after installation.