Skip to content
Snippets Groups Projects
Commit 1bf1a4c9 authored by catch's avatar catch
Browse files

Issue #3465507 by mstrelan, nicxvan: Deprecate and / or remove unused...

Issue #3465507 by mstrelan, nicxvan: Deprecate and / or remove unused Controllers and routes from WebAssert tests
parent a5298099
Branches
Tags
20 merge requests!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!9470[10.3.x-only-DO-NOT-MERGE]: #3331771 Fix file_get_contents(): Passing null to parameter,!8736Update the Documention As per the Function uses.,!8513Issue #3453786: DefaultSelection should document why values for target_bundles NULL and [] behave as they do,!3878Removed unused condition head title for views,!3818Issue #2140179: $entity->original gets stale between updates,!3742Issue #3328429: Create item list field formatter for displaying ordered and unordered lists,!3731Claro: role=button on status report items,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!3133core/modules/system/css/components/hidden.module.css,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2812Issue #3312049: [Followup] Fix Drupal.Commenting.FunctionComment.MissingReturnType returns for NULL,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2062Issue #3246454: Add weekly granularity to views date sort,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!877Issue #2708101: Default value for link text is not saved,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493
Pipeline #249578 passed
Pipeline: drupal

#249594

    Pipeline: drupal

    #249587

      Pipeline: drupal

      #249582

        ......@@ -5,7 +5,6 @@
        use Drupal\Core\Render\Markup;
        use Drupal\Core\Url;
        use Symfony\Component\HttpFoundation\RedirectResponse;
        use Symfony\Component\HttpFoundation\Response;
        use Symfony\Component\HttpKernel\Exception\HttpException;
        /**
        ......@@ -96,42 +95,6 @@ public function error() {
        ];
        }
        /**
        * Sets an HTTP header.
        *
        * @param string $name
        * The header name.
        * @param string $value
        * (optional) The header value ot set.
        */
        public function setHeader($name, $value = NULL) {
        $response = new Response();
        $response->headers->set($name, $value);
        return $response;
        }
        /**
        * Renders a page with encoded markup.
        *
        * @return array
        * A render array as expected by
        * \Drupal\Core\Render\RendererInterface::render().
        */
        public function renderEncodedMarkup() {
        return ['#plain_text' => 'Bad html <script>alert(123);</script>'];
        }
        /**
        * Renders a page with pipe character in link test.
        *
        * @return array
        * A render array as expected by
        * \Drupal\Core\Render\RendererInterface::render().
        */
        public function renderPipeInLink() {
        return ['#markup' => '<a href="http://example.com">foo|bar|baz</a>'];
        }
        public function escapedCharacters() {
        return [
        '#prefix' => '<div class="escaped">',
        ......@@ -170,56 +133,6 @@ public function metaRefresh() {
        return new RedirectResponse(Url::fromRoute('test_page_test.test_page', [], ['absolute' => TRUE])->toString(), 302);
        }
        /**
        * Returns a page render array with 2 elements with the same HTML IDs.
        *
        * @return array
        * A render array as expected by
        * \Drupal\Core\Render\RendererInterface::render().
        */
        public function renderPageWithDuplicateIds() {
        return [
        '#type' => 'container',
        'title' => [
        '#type' => 'html_tag',
        '#tag' => 'h1',
        '#value' => 'Hello',
        '#attributes' => ['id' => 'page-element'],
        ],
        'description' => [
        '#type' => 'html_tag',
        '#tag' => 'h2',
        '#value' => 'World',
        '#attributes' => ['id' => 'page-element'],
        ],
        ];
        }
        /**
        * Returns a page render array with 2 elements with the unique HTML IDs.
        *
        * @return array
        * A render array as expected by
        * \Drupal\Core\Render\RendererInterface::render().
        */
        public function renderPageWithoutDuplicateIds() {
        return [
        '#type' => 'container',
        'title' => [
        '#type' => 'html_tag',
        '#tag' => 'h1',
        '#value' => 'Hello',
        '#attributes' => ['id' => 'page-element-title'],
        ],
        'description' => [
        '#type' => 'html_tag',
        '#tag' => 'h2',
        '#value' => 'World',
        '#attributes' => ['id' => 'page-element-description'],
        ],
        ];
        }
        /**
        * Returns a page while triggering deprecation notices.
        */
        ......
        ......@@ -36,13 +36,6 @@ test_page_test.dynamic_title:
        requirements:
        _access: 'TRUE'
        test_page_test.admin_render_title:
        path: '/admin/test-render-title'
        defaults:
        _controller: '\Drupal\test_page_test\Controller\Test::renderTitle'
        requirements:
        _access: 'TRUE'
        test_page_test.http_response_exception:
        path: '/test-http-response-exception/{code}'
        defaults:
        ......@@ -59,30 +52,6 @@ test_page_test.error:
        requirements:
        _access: 'TRUE'
        test_page_test.null_header:
        path: '/test-null-header'
        defaults:
        _controller: '\Drupal\test_page_test\Controller\Test::setHeader'
        name: Null-Header
        requirements:
        _access: 'TRUE'
        test_page_test.encoded:
        path: '/test-encoded'
        defaults:
        _title: 'Page with encoded HTML'
        _controller: '\Drupal\test_page_test\Controller\Test::renderEncodedMarkup'
        requirements:
        _access: 'TRUE'
        test_page_test.pipe:
        path: '/test-pipe-char'
        defaults:
        _title: 'Page with pipe char in link'
        _controller: '\Drupal\test_page_test\Controller\Test::renderPipeInLink'
        requirements:
        _access: 'TRUE'
        test_page_test.field_xpath:
        path: '/test-field-xpath'
        defaults:
        ......@@ -123,20 +92,6 @@ test_page_test.meta_refresh:
        requirements:
        _access: 'TRUE'
        test_page_test.page_with_duplicate_ids:
        path: '/test-page-with-duplicate-ids'
        defaults:
        _controller: '\Drupal\test_page_test\Controller\Test::renderPageWithDuplicateIds'
        requirements:
        _access: 'TRUE'
        test_page_test.page_without_duplicate_ids:
        path: '/test-page-without-duplicate-ids'
        defaults:
        _controller: '\Drupal\test_page_test\Controller\Test::renderPageWithoutDuplicateIds'
        requirements:
        _access: 'TRUE'
        test_page_test.deprecations:
        path: '/test-deprecations'
        defaults:
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment