Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
24
vendor/behat/mink-browserkit-driver/tests/Custom/BaseUrlTest.php
vendored
Normal file
24
vendor/behat/mink-browserkit-driver/tests/Custom/BaseUrlTest.php
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace Behat\Mink\Tests\Driver\Custom;
|
||||
|
||||
use Behat\Mink\Driver\BrowserKitDriver;
|
||||
use Behat\Mink\Session;
|
||||
use Symfony\Component\HttpKernel\Client;
|
||||
|
||||
/**
|
||||
* @group functional
|
||||
*/
|
||||
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());
|
||||
}
|
||||
}
|
||||
Reference in a new issue