You are here

public function NavigationTest::testRedirect in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/driver-testsuite/tests/Basic/NavigationTest.php \Behat\Mink\Tests\Driver\Basic\NavigationTest::testRedirect()

File

vendor/behat/mink/driver-testsuite/tests/Basic/NavigationTest.php, line 9

Class

NavigationTest

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testRedirect() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/redirector.php'));
  $this
    ->assertEquals($this
    ->pathTo('/redirect_destination.html'), $this
    ->getSession()
    ->getCurrentUrl());
}