You are here

class BaseUrlTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink-browserkit-driver/tests/Custom/BaseUrlTest.php \Behat\Mink\Tests\Driver\Custom\BaseUrlTest

@group functional

Hierarchy

  • class \Behat\Mink\Tests\Driver\Custom\BaseUrlTest extends \Behat\Mink\Tests\Driver\Custom\PHPUnit_Framework_TestCase

Expanded class hierarchy of BaseUrlTest

File

vendor/behat/mink-browserkit-driver/tests/Custom/BaseUrlTest.php, line 12

Namespace

Behat\Mink\Tests\Driver\Custom
View source
class BaseUrlTest extends \PHPUnit_Framework_TestCase {
  public function testBaseUrl() {
    $client = new Client(require __DIR__ . '/../app.php');
    $driver = new BrowserKitDriver($client, 'http://localhost/foo/');
    $session = new Session($driver);
    $session
      ->visit('http://localhost/foo/index.html');
    $this
      ->assertEquals(200, $session
      ->getStatusCode());
    $this
      ->assertEquals('http://localhost/foo/index.html', $session
      ->getCurrentUrl());
  }

}

Members