Skip to content
Snippets Groups Projects

Drupal 11 compatibility fixes

Closes #3465838

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
92 'sorting_code' => '',
93 ], $data['address_advanced']);
94 $this->assertNull($data['address_none']);
95 $this->assertEquals([[
96 'address_line1' => '1098 Alta Ave',
97 'address_line2' => '',
98 'address_line3' => '',
99 'administrative_area' => 'CA',
100 'country_code' => 'US',
101 'family_name' => 'Smith',
102 'given_name' => 'John',
103 'langcode' => 'en',
104 'locality' => 'Mountain View',
105 'organization' => 'Google Inc.',
106 'postal_code' => '94043',
107 ]], $data['address_multiple']);
  • 145 153 // Check composite elements against address schema.
    146 154 $composite_elements = $element['#webform_composite_elements'];
    147 155 $diff_composite_elements = array_diff_key($composite_elements, $schema['columns']);
    148 $this->debug($diff_composite_elements);
    149 156 $this->assertEmpty($diff_composite_elements);
    150 157
    151 158 // Check composite elements maxlength against address schema.
    152 159 foreach ($schema['columns'] as $column_name => $column) {
    153 $this->assertEquals($composite_elements[$column_name]['#maxlength'], $column['length']);
    160 // @todo: Add support for address_line3.
    161 if ($column_name === 'address_line3') {
  • Adam Bramley added 1 commit

    added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading