Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plopesc’s picture

Assigned: Unassigned » plopesc
Status: Active » Needs review
FileSize
3.28 KB

Hello.

Attaching patch that converts layout_test_page() to a Controller.

Regards

dawehner’s picture

+++ b/core/modules/layout/tests/lib/Drupal/layout_test/Controller/LayoutTestController.phpundefined
@@ -0,0 +1,42 @@
+    $display = entity_load('display', 'test_twocol');

entityLoad could be replayed by an injected entity storage controller.

plopesc’s picture

Re-rolled patch injecting entity storage controller.

Maybe theme_enable hack could be replaced because uses internally some configuration system dependencies.

What do you think?

Regards.

dawehner’s picture

He, you interdiffs seems to be out of scope somehow.

+++ b/core/modules/layout/tests/lib/Drupal/layout_test/Controller/LayoutTestController.phpundefined
@@ -0,0 +1,70 @@
+   * Page callback for layout testing.

Do we have a better description then "page callback"? This seems very D7-ish.

dawehner’s picture

Status: Needs review » Needs work
plopesc’s picture

Status: Needs work » Needs review
FileSize
684 bytes
4.28 KB

Sorry, I forgot to change the docblock.

Re-rolling patch.

Regards.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Thank you

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 8e7ead4 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.