Fix failed test PagererTest

Created on 18 November 2023, about 1 year ago

Problem/Motivation

Gitlab CI reports that \Drupal\Tests\pagerer\Functional\PagererTest::testQuerystringOverrides is failing.
I tried to debug this locally with Drupal 10.2, but I was not able to repeat this issue on my local host.
All tests on my local host passes. With Drupal CI all tests are passed as well.

1) Drupal\Tests\pagerer\Functional\PagererTest::testQuerystringOverrides
// 0 // page
Failed asserting that an array is not empty.
/builds/project/pagerer/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121
/builds/project/pagerer/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/builds/project/pagerer/tests/src/Functional/PagererTest.php:601
/builds/project/pagerer/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
FAILURES!
Tests: 13, Assertions: 738, Failures: 1.

In Gitlab CI subdirecroty "web" is used.

  • Drupal CI "/pager-test/multiple-pagers",
  • Gitlab CI "/web/pager-test/multiple-pagers".

Affected code

 $this->drupalGet($GLOBALS['base_root'] . '/pager-test/multiple-pagers' . $input_query, ['external' => TRUE]);

Steps to reproduce

todo update

Proposed resolution

  • Support subdirecroty in PagererTest::testQuerystringOverrides.
  • Check that 'pager-test/multiple-pagers' returns 200 code.
🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇷🇺Russia zniki.ru

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024