- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
This comes up in google results ahead of the current issue at ๐ฑ [meta] Support PHPUnit 10 in Drupal 11 Active so cross-linking.
- ๐ฎ๐ณIndia hiramanpatil
@benJBmC,
I am using Drupal 10.1.7 version with below PHPUnit configuration."require-dev": {
"phpspec/prophecy": "^1.17",
"phpunit/phpunit": "9.5.28",
"symfony/phpunit-bridge": "^7.0"
}I am trying to run the dev module test but getting errors.
Command - vendor/bin/phpunit web/modules/contrib/devel/tests/src/Functional/DevelControllerTest.php
Output
PHPUnit 9.5.28 by Sebastian Bergmann and contributors.
Testing Drupal\Tests\devel\Functional\DevelControllerTest
E 1 / 1 (100%)Time: 00:48.149, Memory: 10.00 MB
There was 1 error:
1) Drupal\Tests\devel\Functional\DevelControllerTest::testRouteGeneration
Error: Class "Behat\Mink\Driver\BrowserKitDriver" not foundC:\xampp\htdocs\projects\drupalten\web\core\tests\Drupal\Tests\BrowserTestBase.php:310
C:\xampp\htdocs\projects\drupalten\web\core\tests\Drupal\Tests\BrowserTestBase.php:222
C:\xampp\htdocs\projects\drupalten\web\core\tests\Drupal\Tests\BrowserTestBase.php:370
C:\xampp\htdocs\projects\drupalten\web\modules\contrib\devel\tests\src\Functional\DevelBrowserTestBase.php:43
C:\xampp\htdocs\projects\drupalten\web\modules\contrib\devel\tests\src\Functional\DevelControllerTest.php:57
C:\xampp\htdocs\projects\drupalten\vendor\phpunit\phpunit\src\Framework\TestResult.php:728ERRORS!
Tests: 1, Assertions: 1, Errors: 1.Remaining self deprecation notices (1)
1x: The Drupal\Tests\devel\Functional\DevelControllerTest::$modules property must be declared protected. See https://www.drupal.org/node/2909426 โ
1x in DrupalListener::startTest from Drupal\Tests\Listeners