Skip to content
Snippets Groups Projects
Commit 319a89e4 authored by catch's avatar catch
Browse files

Issue #3497632 by goz, smustgrave: Convert remaining tests to use...

Issue #3497632 by goz, smustgrave: Convert remaining tests to use PerformanceTestTrait::assertMetrics()
parent e2b97e56
No related branches found
No related tags found
3 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation
Pipeline #407169 passed with warnings
Pipeline: drupal

#407185

    Pipeline: drupal

    #407180

      Pipeline: drupal

      #407171

        ...@@ -69,13 +69,15 @@ public function testTopBarPerformance(): void { ...@@ -69,13 +69,15 @@ public function testTopBarPerformance(): void {
        // Ensure that there is no change to performance metrics from the Top Bar. // Ensure that there is no change to performance metrics from the Top Bar.
        // Anonymous users should never see the Top Bar. // Anonymous users should never see the Top Bar.
        $this->assertSame($performance_data_before_top_bar->getQueryCount(), $performance_data_after_top_bar->getQueryCount()); $this->assertMetrics([
        $this->assertSame($performance_data_before_top_bar->getCacheGetCount(), $performance_data_after_top_bar->getCacheGetCount()); 'QueryCount' => $performance_data_before_top_bar->getQueryCount(),
        $this->assertSame($performance_data_before_top_bar->getCacheSetCount(), $performance_data_after_top_bar->getCacheSetCount()); 'CacheGetCount' => $performance_data_before_top_bar->getCacheGetCount(),
        $this->assertSame($performance_data_before_top_bar->getCacheDeleteCount(), $performance_data_after_top_bar->getCacheDeleteCount()); 'CacheSetCount' => $performance_data_before_top_bar->getCacheSetCount(),
        $this->assertSame($performance_data_before_top_bar->getCacheTagChecksumCount(), $performance_data_after_top_bar->getCacheTagChecksumCount()); 'CacheDeleteCount' => $performance_data_before_top_bar->getCacheDeleteCount(),
        $this->assertSame($performance_data_before_top_bar->getCacheTagIsValidCount(), $performance_data_after_top_bar->getCacheTagIsValidCount()); 'CacheTagChecksumCount' => $performance_data_before_top_bar->getCacheTagChecksumCount(),
        $this->assertSame($performance_data_before_top_bar->getCacheTagInvalidationCount(), $performance_data_after_top_bar->getCacheTagInvalidationCount()); 'CacheTagIsValidCount' => $performance_data_before_top_bar->getCacheTagIsValidCount(),
        'CacheTagInvalidationCount' => $performance_data_before_top_bar->getCacheTagInvalidationCount(),
        ], $performance_data_after_top_bar);
        } }
        } }
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment