From b32c0b128f08e906bc707afd253133c99306a725 Mon Sep 17 00:00:00 2001 From: nod_ <nod_@598310.no-reply.drupal.org> Date: Tue, 20 Aug 2024 21:59:16 +0200 Subject: [PATCH] Issue #3468831 by catch, smustgrave: Speed up DemoUmamiProfileTest (cherry picked from commit ef3f5e380f2ba350e9789d1798db2c24eaeff3d8) --- .../tests/src/Functional/DemoUmamiProfileTest.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php index b6a9906524b8..e83d86a7e732 100644 --- a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php +++ b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php @@ -40,9 +40,9 @@ protected function installParameters() { protected $profile = 'demo_umami'; /** - * Tests some features specific to being a demonstration profile. + * Tests various capabilities of the demo profile. */ - public function testDemoSpecificFeatures(): void { + public function testDemoFeatures(): void { // This test coverage is organized into separate protected methods rather // than individual test methods to avoid having to reinstall Umami for // a handful of assertions each. @@ -50,6 +50,8 @@ public function testDemoSpecificFeatures(): void { $this->testWarningsOnStatusPage(); $this->testAppearance(); $this->testDemonstrationWarningMessage(); + $this->testConfig(); + $this->testEditNodesByAdmin(); } /** @@ -67,7 +69,7 @@ protected function testWarningsOnStatusPage() { /** * Tests the profile supplied configuration is the same after installation. */ - public function testConfig(): void { + protected function testConfig(): void { // Just connect directly to the config table so we don't need to worry about // the cache layer. $active_config_storage = $this->container->get('config.storage'); @@ -160,7 +162,7 @@ protected function testUser() { /** * Tests the successful editing of nodes by admin. */ - public function testEditNodesByAdmin(): void { + protected function testEditNodesByAdmin(): void { $permissions = [ 'administer nodes', 'edit any recipe content', -- GitLab