[2.0.0-beta2] Test PropTypeInterface::normalize()

Created on 22 August 2024, 4 months ago

Problem/Motivation

We need to test PropTypeInterface::normalize() function

We already have a test for LinksPropType : LinksPropTypeNormalizationTest

But this is not enough

Proposed resolution

At least, add similar tests for the 2 other prop types using the mehtod:

  • SlotPropType
  • AttributesPropType

If possible, fix an issue in LinksPropTypeNormalizationTest where 2 tests where disabled (commented) because they need the service container:

      "Standardized structure, flat, only primitives" => self::standardizedFlatPrimitives(),
      // "Standardized structure, flat, with objects" => self::standardizedFlatObjects(),
      "Breadcrumb structure, as generated by the core service" => self::breadcrumb(),
      "Mini pager, as generated by the Views module" => self::viewsMiniPager(),
      "Pager's pages, as generated by the Views module" => self::pagerPages(),
      "Pager's navigation links, as generated by the Views module" => self::pagesNavigationLinks(),
      // "Menu, as generated by the Menu module" => self::menu(),
      "Where link_attributes is already manually set" => self::linkAttributes(),

Do you know how to use teh service container in such tests?

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024