Verified Commit 4adbf9c4 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 e53b0392
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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',