public function DestinationParameterOverrideTest::testDestinationParameterOverride in Redirect 403 to User Login 8
Same name and namespace in other branches
- 2.x tests/src/Functional/DestinationParameterOverrideTest.php \Drupal\Tests\r4032login\Functional\DestinationParameterOverrideTest::testDestinationParameterOverride()
Test destination parameter override.
@dataProvider destinationParameterOverrideDataProvider
Parameters
string $path: Request path.
string $destination: Resulting URL.
File
- tests/
src/ Functional/ DestinationParameterOverrideTest.php, line 40
Class
- DestinationParameterOverrideTest
- Test that it is possible to override the destination parameter.
Namespace
Drupal\Tests\r4032login\FunctionalCode
public function testDestinationParameterOverride($path, $destination) {
$this
->drupalGet($path);
$currentUrl = str_replace($this->baseUrl . '/', '', $this
->getUrl());
$this
->assertEquals($currentUrl, $destination);
}