public function CasProxyHelperTest::proxyAuthenticateDataProvider in CAS 8
Same name and namespace in other branches
- 2.x tests/src/Unit/Service/CasProxyHelperTest.php \Drupal\Tests\cas\Unit\Service\CasProxyHelperTest::proxyAuthenticateDataProvider()
Provides parameters and return value for testProxyAuthenticate.
Return value
array Parameters and return values.
See also
\Drupal\Tests\cas\Unit\Service\CasProxyHelperTest::testProxyAuthenticate
File
- tests/
src/ Unit/ Service/ CasProxyHelperTest.php, line 152
Class
- CasProxyHelperTest
- CasHelper unit tests.
Namespace
Drupal\Tests\cas\Unit\ServiceCode
public function proxyAuthenticateDataProvider() {
/* There are two scenarios that return successfully that we test here.
* First, proxying a new service that was not previously proxied. Second,
* a second request for a service that has already been proxied.
*/
return [
[
'https://example.com',
'example.com',
FALSE,
],
[
'https://example.com',
'example.com',
TRUE,
],
];
}