Comments (2)
I can't open a PR, but I think this should be the fix:
public function load(ContainerBuilder $container, array $config)
{
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/config'));
$loader->load('services.yml');
$container->setParameter('drupal.drupal.default_driver', $config['default_driver']);
$this->loadParameters($container, $config);
if (!isset($config['blackbox'])) {
// Workaround a bug in BrowserKitDriver that wrongly considers as text
// of the page, pieces of texts inside the <head> section.
// @see https://github.com/minkphp/MinkBrowserKitDriver/issues/153
// @see https://www.drupal.org/project/drupal/issues/3175718
$drupalFinder = new DrupalFinder();
if (!$drupalFinder->locateRoot(getcwd())) {
throw new \RuntimeException('Cannot locate Drupal');
}
$drupalRoot = $drupalFinder->getDrupalRoot();
require_once($drupalRoot . '/core/tests/Drupal/Tests/DocumentElement.php');
class_alias('\Drupal\Tests\DocumentElement', '\Behat\Mink\Element\DocumentElement', true);
}
// Setup any drivers if requested.
$this->loadBlackbox($loader, $config);
$this->loadDrupal($loader, $container, $config);
$this->loadDrush($loader, $container, $config);
}
from drupalextension.
from drupalextension.
Related Issues (20)
- PHP 8.1 compatibility error: "$this" can no longer be used in a plain function or method since PHP 7.1
- Guzzle 7 issue HOT 3
- New step for press button in row HOT 1
- Error when tried to update to 5.0.0 alpha, conflicts with drupal/core-dev HOT 13
- DrupalAuthenticationManager is confused about login state across scenario's
- Escaping in createNode() changed with PHP 8.1
- Test on PHP 8.2
- Creating a node with a certain URL alias HOT 1
- Disable automatic cleanup HOT 1
- Add a .readthedocs.yml configuration file HOT 4
- Fix failing D10 tests HOT 2
- Remove DrupalFinder HOT 2
- Write an upgrade guide to 5.x? HOT 1
- PHP Fatal Error with PHP 8.2 when using `drupal` api driver HOT 3
- Content loaded via BigPipe is sometimes not available by the time steps are executed, leading to random failures
- Add step definition for dragging one element onto another
- behat/mink-goutte-driver is deprecated and getting this error on PHP 8.2 "Install MinkGoutteDriver in order to use goutte driver.".
- Drupal 11 support HOT 3
- "Given I am logged in as a user with the :role role(s) and I have the following fields" does nothing if currently-logged-in user shares role
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupalextension.