public function CasRedirectorTest::getServiceUrl in CAS 2.x
Same name and namespace in other branches
- 8 tests/src/Unit/Service/CasRedirectorTest.php \Drupal\Tests\cas\Unit\Service\CasRedirectorTest::getServiceUrl()
 
Get a service URL.
Parameters
string $route: The route name.
array $parameters: The service URL parameters.
Return value
string The constructed service URL.
File
- tests/
src/ Unit/ Service/ CasRedirectorTest.php, line 115  
Class
- CasRedirectorTest
 - Cas Redirector Unit Tests.
 
Namespace
Drupal\Tests\cas\Unit\ServiceCode
public function getServiceUrl($route, array $parameters = NULL) {
  if ($parameters) {
    return 'http://example.com/casservice?' . UrlHelper::buildQuery($parameters);
  }
  else {
    return 'http://example.com/casservice';
  }
}