You are here

public function RedirectRequestSubscriberTest::getRedirectData in Redirect 8

Data provider for both tests.

File

tests/src/Unit/RedirectRequestSubscriberTest.php, line 108

Class

RedirectRequestSubscriberTest
Tests the redirect logic.

Namespace

Drupal\Tests\redirect\Unit

Code

public function getRedirectData() {
  return [
    [
      'non-existing',
      [
        'key' => 'val',
      ],
      '/test-path',
      [
        'dummy' => 'value',
      ],
    ],
    [
      'non-existing/',
      [
        'key' => 'val',
      ],
      '/test-path',
      [
        'dummy' => 'value',
      ],
    ],
    [
      'system/files/file.txt',
      [],
      '/test-path',
      [],
    ],
  ];
}