Skip to content
Snippets Groups Projects
Commit 6fa03441 authored by catch's avatar catch
Browse files

Issue #3500360 by plopesc, dww: Use PerformanceTestTrait::assertMetrics() in...

Issue #3500360 by plopesc, dww: Use PerformanceTestTrait::assertMetrics() in the navigation performance test
parent 87982857
No related branches found
No related tags found
4 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation
Pipeline #399861 passed with warnings
Pipeline: drupal

#399883

    Pipeline: drupal

    #399880

      Pipeline: drupal

      #399876

        +4
        ...@@ -68,20 +68,23 @@ public function testLogin(): void { ...@@ -68,20 +68,23 @@ public function testLogin(): void {
        'SELECT "roles_target_id" FROM "user__roles" WHERE "entity_id" = "2"', 'SELECT "roles_target_id" FROM "user__roles" WHERE "entity_id" = "2"',
        'SELECT "name", "value" FROM "key_value" WHERE "name" IN ( "theme:stark" ) AND "collection" = "config.entity.key_store.block"', 'SELECT "name", "value" FROM "key_value" WHERE "name" IN ( "theme:stark" ) AND "collection" = "config.entity.key_store.block"',
        ]; ];
        $recorded_queries = $performance_data->getQueries(); $recorded_queries = $performance_data->getQueries();
        $this->assertSame($expected_queries, $recorded_queries); $this->assertSame($expected_queries, $recorded_queries);
        $this->assertSame(4, $performance_data->getQueryCount());
        $this->assertSame(61, $performance_data->getCacheGetCount()); $expected = [
        $this->assertSame(2, $performance_data->getCacheSetCount()); 'QueryCount' => 4,
        $this->assertSame(0, $performance_data->getCacheDeleteCount()); 'CacheGetCount' => 61,
        $this->assertSame(2, $performance_data->getCacheTagChecksumCount()); 'CacheSetCount' => 2,
        $this->assertSame(29, $performance_data->getCacheTagIsValidCount()); 'CacheDeleteCount' => 0,
        $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); 'CacheTagChecksumCount' => 2,
        $this->assertSame(1, $performance_data->getStyleSheetCount()); 'CacheTagIsValidCount' => 29,
        $this->assertSame(2, $performance_data->getScriptCount()); 'CacheTagInvalidationCount' => 0,
        $this->assertLessThan(90200, $performance_data->getStylesheetBytes()); 'ScriptCount' => 2,
        $this->assertLessThan(220000, $performance_data->getScriptBytes()); 'ScriptBytes' => 220000,
        'StylesheetCount' => 1,
        'StylesheetBytes' => 90200,
        ];
        $this->assertMetrics($expected, $performance_data);
        // Check that the navigation toolbar is cached without any high-cardinality // Check that the navigation toolbar is cached without any high-cardinality
        // cache contexts (user, route, query parameters etc.). // cache contexts (user, route, query parameters etc.).
        ......
        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