You are here

public function CasHelperTest::getServerLoginUrlDataProvider in CAS 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/Service/CasHelperTest.php \Drupal\Tests\cas\Unit\Service\CasHelperTest::getServerLoginUrlDataProvider()

Provides parameters and expected return values for testGetServerLoginUrl.

Return value

array The list of parameters and return values.

See also

\Drupal\Tests\cas\Unit\CasHelperTest::testGetServerLoginUrl()

File

tests/src/Unit/Service/CasHelperTest.php, line 80

Class

CasHelperTest
CasHelper unit tests.

Namespace

Drupal\Tests\cas\Unit\Service

Code

public function getServerLoginUrlDataProvider() {
  return [
    [
      [],
      'https://example.com/client',
    ],
    [
      [
        'returnto' => 'node/1',
      ],
      'https://example.com/client?returnto=node%2F1',
    ],
  ];
}