Skip to content
Snippets Groups Projects
Verified Commit 0376fa17 authored by quietone's avatar quietone
Browse files

Issue #3495638 by nikolay shapovalov, smustgrave, nicxvan: Move helpers in...

Issue #3495638 by nikolay shapovalov, smustgrave, nicxvan: Move helpers in workflow_type_test.module and delete it
parent 7031fb42
No related branches found
No related tags found
9 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,!10786Issue #3490579 by shalini_jha, mstrelan: Add void return to all views...,!3818Issue #2140179: $entity->original gets stale between updates,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2062Issue #3246454: Add weekly granularity to views date sort,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #380937 passed with warnings
Pipeline: drupal

#380943

    Pipeline: drupal

    #380940

      Pipeline: drupal

      #380939

        ......@@ -53223,12 +53223,6 @@
        'count' => 1,
        'path' => __DIR__ . '/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php',
        ];
        $ignoreErrors[] = [
        'message' => '#^Function workflow_type_test_set_definitions\\(\\) has no return type specified\\.$#',
        'identifier' => 'missingType.return',
        'count' => 1,
        'path' => __DIR__ . '/modules/workflows/tests/modules/workflow_type_test/workflow_type_test.module',
        ];
        $ignoreErrors[] = [
        'message' => '#^Method Drupal\\\\Tests\\\\workflows\\\\Functional\\\\Rest\\\\WorkflowJsonAnonTest\\:\\:assertAuthenticationEdgeCases\\(\\) has no return type specified\\.$#',
        'identifier' => 'missingType.return',
        <?php
        /**
        * @file
        * Module file for workflow_type_test.
        */
        declare(strict_types=1);
        /**
        * Sets the type plugin definitions override and clear the cache.
        *
        * @param array $definitions
        * Definitions to set.
        */
        function workflow_type_test_set_definitions($definitions) {
        \Drupal::state()->set('workflow_type_test.plugin_definitions', $definitions);
        \Drupal::service('plugin.manager.workflows.type')->clearCachedDefinitions();
        }
        ......@@ -88,7 +88,8 @@ public function testCheckCreateAccess(): void {
        // Remove all plugin types and ensure not even the admin user is allowed to
        // create a workflow.
        workflow_type_test_set_definitions([]);
        $this->container->get('state')->set('workflow_type_test.plugin_definitions', []);
        $this->container->get('plugin.manager.workflows.type')->clearCachedDefinitions();
        $this->accessControlHandler->resetCache();
        $this->assertEquals(
        AccessResult::neutral()
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment