You are here

private function DomainAliasSortTest::sortList in Domain Access 8

An array of expected matches to specific domains.

1 call to DomainAliasSortTest::sortList()
DomainAliasSortTest::testAliasSort in domain_alias/tests/src/Functional/DomainAliasSortTest.php
Tests the sorting of alias records.

File

domain_alias/tests/src/Functional/DomainAliasSortTest.php, line 28

Class

DomainAliasSortTest
Tests domain alias request sorting.

Namespace

Drupal\Tests\domain_alias\Functional

Code

private function sortList() {
  return [
    'example.com' => [
      'example.com',
      'example.*',
      '*.com',
    ],
    'one.example.com' => [
      'one.example.com',
      'one.example.*',
      '*.example.com',
      'one.*.com',
      '*.example.*',
      '*.*.com',
      'one.*.*',
    ],
    'one.two.example.com' => [
      'one.two.example.com',
      '*.two.example.com',
      'one.two.example.*',
      'one.*.example.com',
      '*.*.example.com',
      'one.two.*.com',
      'one.*.example.*',
      'one.*.*.com',
      '*.two.*.com',
      'one.two.*.*',
      '*.*.example.com',
      '*.*.*.com',
      'one.*.*.*',
      '*.two.*.*',
    ],
    'example.com:80' => [
      'example.com:80',
      'example.com',
      'example.*',
      'example.com:*',
      'example.*:80',
      'example.*:*',
      '*.com',
      '*.com:80',
      '*.com:*',
    ],
    'example.com:8080' => [
      'example.com:8080',
      'example.com:*',
      'example.*:8080',
      'example.*:*',
      '*.com:8080',
      '*.com:*',
    ],
  ];
}