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

Issue #3460654 by pooja_sharma, FeyP, catch: Merge test methods in...

Issue #3460654 by pooja_sharma, FeyP, catch: Merge test methods in FieldUIRouteTest for better performance

(cherry picked from commit 302ee049)
parent b26e834e
No related branches found
No related tags found
10 merge requests!10602Issue #3438769 by vinmayiswamy, antonnavi, michelle, amateescu: Sub workspace does not clear,!10301Issue #3469309 by mstrelan, smustgrave, moshe weitzman: Use one-time login...,!10187Issue #3487488 by dakwamine: ExtensionMimeTypeGuesser::guessMimeType must support file names with "0" (zero) like foo.0.zip,!9929Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9787Resolve issue 3479427 - bootstrap barrio issue under Windows,!9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two,!9526Issue #3458177 by mondrake, catch, quietone, godotislate, longwave, larowlan,...,!6502Draft: Resolve #2938524 "Plach testing issue",!38582585169-10.1.x,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key
Pipeline #236988 passed with warnings
Pipeline: drupal

#237039

    Pipeline: drupal

    #237033

      Pipeline: drupal

      #237027

        +6
        ......@@ -40,6 +40,11 @@ protected function setUp(): void {
        * Ensures that entity types with bundles do not break following entity types.
        */
        public function testFieldUIRoutes(): void {
        $route = \Drupal::service('router.route_provider')->getRouteByName('entity.entity_test.field_ui_fields');
        $is_admin = \Drupal::service('router.admin_context')->isAdminRoute($route);
        // Asserts that admin routes are correctly marked as such.
        $this->assertTrue($is_admin, 'Admin route correctly marked for "Manage fields" page.');
        $this->drupalLogin($this->drupalCreateUser([
        'administer account settings',
        'administer entity_test_no_id fields',
        ......@@ -126,13 +131,4 @@ public function assertLocalTasks(): void {
        $this->assertSession()->linkExists('Manage form display');
        }
        /**
        * Asserts that admin routes are correctly marked as such.
        */
        public function testAdminRoute(): void {
        $route = \Drupal::service('router.route_provider')->getRouteByName('entity.entity_test.field_ui_fields');
        $is_admin = \Drupal::service('router.admin_context')->isAdminRoute($route);
        $this->assertTrue($is_admin, 'Admin route correctly marked for "Manage fields" page.');
        }
        }
        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