Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
27
core/vendor/behat/mink-goutte-driver/tests/Custom/InstantiationTest.php
vendored
Normal file
27
core/vendor/behat/mink-goutte-driver/tests/Custom/InstantiationTest.php
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace Behat\Mink\Tests\Driver\Custom;
|
||||
|
||||
use Behat\Mink\Driver\GoutteDriver;
|
||||
|
||||
class InstantiationTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testInstantiateWithClient()
|
||||
{
|
||||
$client = $this->getMockBuilder('Goutte\Client')->disableOriginalConstructor()->getMock();
|
||||
$client->expects($this->once())
|
||||
->method('followRedirects')
|
||||
->with(true);
|
||||
|
||||
$driver = new GoutteDriver($client);
|
||||
|
||||
$this->assertSame($client, $driver->getClient());
|
||||
}
|
||||
|
||||
public function testInstantiateWithoutClient()
|
||||
{
|
||||
$driver = new GoutteDriver();
|
||||
|
||||
$this->assertInstanceOf('Behat\Mink\Driver\Goutte\Client', $driver->getClient());
|
||||
}
|
||||
}
|
26
core/vendor/behat/mink-goutte-driver/tests/GoutteConfig.php
vendored
Normal file
26
core/vendor/behat/mink-goutte-driver/tests/GoutteConfig.php
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace Behat\Mink\Tests\Driver;
|
||||
|
||||
use Behat\Mink\Driver\GoutteDriver;
|
||||
|
||||
class GoutteConfig extends AbstractConfig
|
||||
{
|
||||
public static function getInstance()
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function createDriver()
|
||||
{
|
||||
return new GoutteDriver();
|
||||
}
|
||||
|
||||
protected function supportsJs()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in a new issue