The module's PHPUnit tests have some errors.

Created on 14 January 2022, almost 3 years ago
Updated 2 May 2024, 8 months ago

Problem/Motivation

When I wanted to run the PHPUnit tests in the module I got the following error messages:

1) Drupal\Tests\rename_admin_paths\Functional\AccessTest::testAdminNotAccessibleAfterRenaming
Exception: Drupal\Tests\BrowserTestBase::$defaultTheme is required. See https://www.drupal.org/node/3083055 , which includes recommendations on which theme to use.

2) Drupal\Tests\rename_admin_paths\Functional\AdminFormTest::testViewForm
Exception: Drupal\Tests\BrowserTestBase::$defaultTheme is required. See https://www.drupal.org/node/3083055 , which includes recommendations on which theme to use.

3) Drupal\Tests\rename_admin_paths\Functional\AdminFormTest::testEnablePathReplacements
Exception: Drupal\Tests\BrowserTestBase::$defaultTheme is required. See https://www.drupal.org/node/3083055 , which includes recommendations on which theme to use.

4) Drupal\Tests\rename_admin_paths\Unit\EventSubscriber\RenameAdminPathEventSubscriberTest::testGetSubscribedEvents
Error: Call to undefined method Drupal\Tests\rename_admin_paths\Unit\EventSubscriber\RenameAdminPathEventSubscriberTest::assertInternalType()

There was 1 risky test:

1) Drupal\Tests\rename_admin_paths\Functional\AccessTest::testAdminNotAccessibleAfterRenaming
This test did not perform any assertions

ERRORS!
Tests: 54, Assertions: 117, Errors: 4, Risky: 1.

Remaining self deprecation notices (2)

2x: Declaring ::setUp without a void return typehint in Drupal\Tests\rename_admin_paths\Functional\AdminFormTest is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0. See https://www.drupal.org/node/3114724
2x in DrupalListener::startTest from Drupal\Tests\Listeners

Steps to reproduce

  1. Check out the 8.x-2.x branch.
  2. Run the module's tests.
🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇭🇺Hungary david.czinege

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

Merge Requests

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.71.5 2024