for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\Tests\Driver\Kernel;
use Drupal\Driver\DrupalDriver;
/**
* Provides common functionality for the Driver kernel tests.
*/
trait DriverKernelTestTrait
{
* Drupal Driver.
*
* @var \Drupal\Driver\DriverInterface
protected $driver;
protected function setUpDriver()
// @todo These hard-coded values are only necessary to test the driver's
// methods directly. Doing so becomes less important once more logic has
// been moved off the driver into other directly testable classes.
$this->driver = new DrupalDriver('/app/web', 'http://nothing');
$this->driver->setCoreFromVersion();
}