Fix failing tests in 2.0.x

Created on 23 December 2022, over 1 year ago
Updated 19 April 2023, about 1 year ago

Problem/Motivation

2.0.x currently has 4 failing tests that should be fixed.

✓	✗	
	2	Menu_link.Menu_link
	2	Menu_link.Drupal\Tests\menu_link\Functional\MenuLinkUpdatePathTest
	✗	
Drupal\Tests\menu_link\Functional\MenuLinkUpdatePathTest

exception: [Other] Line 0 of sites/default/files/simpletest/phpunit-1.xml:
PHPUnit Test failed to complete; Error: PHPUnit 9.5.20 �[44m#StandWith�[0m�[43mUkraine�[0m

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing Drupal\Tests\menu_link\Functional\MenuLinkUpdatePathTest
E                                                                   1 / 1 (100%)R

Time: 00:00.946, Memory: 6.00 MB

There was 1 error:

1) Drupal\Tests\menu_link\Functional\MenuLinkUpdatePathTest::testInstall
Drupal\Core\Config\StorageException: Write operation is not allowed.

/var/www/html/core/lib/Drupal/Core/Config/InstallStorage.php:104
/var/www/html/core/lib/Drupal/Core/Config/Config.php:224
/var/www/html/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:339
/var/www/html/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:197
/var/www/html/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:161
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:726

--

There was 1 risky test:

1) Drupal\Tests\menu_link\Functional\MenuLinkUpdatePathTest::testInstall
This test did not perform any assertions

/var/www/html/core/tests/Drupal/Tests/Listeners/DrupalListener.php:127
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:450
/var/www/html/vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php:377
/var/www/html/vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php:187
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:677
/var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:673
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:143
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:96

ERRORS!
Tests: 1, Assertions: 0, Errors: 1, Risky: 1.

Remaining direct deprecation notices (1)

  1x: The "Drupal\Tests\Listeners\DrupalListener" class implements "PHPUnit\Framework\TestListener" that is deprecated.
    1x in DrupalListener::endTest from Drupal\Tests\Listeners

	✗	
Unknown

fail: [run-tests.sh check] Line 0 of :
FATAL Drupal\Tests\menu_link\Functional\MenuLinkUpdatePathTest: test runner returned a non-zero error code (2).

	2	Menu.Menu
	2	Menu.Drupal\Tests\menu_link\Functional\MenuLinkFieldStandardTest
	✗	
Drupal\Tests\menu_link\Functional\MenuLinkFieldStandardTest

exception: [Other] Line 0 of sites/default/files/simpletest/phpunit-2.xml:
PHPUnit Test failed to complete; Error: PHPUnit 9.5.20 �[44m#StandWith�[0m�[43mUkraine�[0m

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing Drupal\Tests\menu_link\Functional\MenuLinkFieldStandardTest
E                                                                   1 / 1 (100%)

Time: 00:10.617, Memory: 6.00 MB

There was 1 error:

1) Drupal\Tests\menu_link\Functional\MenuLinkFieldStandardTest::testLinkEdit
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "edit-menu-link-0-enabled" not found.

/var/www/html/vendor/behat/mink/src/WebAssert.php:636
/var/www/html/core/tests/Drupal/Tests/WebAssert.php:1075
/var/www/html/vendor/behat/mink/src/WebAssert.php:723
/var/www/html/core/tests/Drupal/Tests/WebAssert.php:1125
/var/www/html/modules/contrib/menu_link/tests/src/Functional/MenuLinkFieldStandardTest.php:57
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:726

ERRORS!
Tests: 1, Assertions: 3, Errors: 1.

HTML output was generated
http://php-apache-jenkins-drupal-contrib-571527/subdirectory/sites/simpletest/browser_output/Drupal_Tests_menu_link_Functional_MenuLinkFieldStandardTest-1-96232043.html

Remaining direct deprecation notices (1)

  1x: The "Drupal\Tests\Listeners\DrupalListener" class implements "PHPUnit\Framework\TestListener" that is deprecated.
    1x in DrupalListener::endTest from Drupal\Tests\Listeners

	✗	
Unknown

fail: [run-tests.sh check] Line 0 of :
FATAL Drupal\Tests\menu_link\Functional\MenuLinkFieldStandardTest: test runner returned a non-zero error code (2).

https://www.drupal.org/pift-ci-job/2368208

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024