Skip to content
Snippets Groups Projects
Verified Commit b32c0b12 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3468831 by catch, smustgrave: Speed up DemoUmamiProfileTest

(cherry picked from commit ef3f5e38)
parent 9a0f1ff6
No related branches found
No related tags found
4 merge requests!11958Issue #3490507 by alexpott, smustgrave: Fix bogus mocking in...,!11769Issue #3517987: Add option to contextual filters to encode slashes in query parameter.,!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...
Pipeline #259592 passed with warnings
Pipeline: drupal

#259597

    ......@@ -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',
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment