Automated tests failing

Created on 20 March 2023, almost 2 years ago
Updated 28 March 2023, over 1 year ago

Problem/Motivation

Automated tests are currently failing.

There was 1 error:

1) Drupal\Tests\protected_pages\Functional\ProtectedPagesAccess::testProtectedPageAccess
Behat\Mink\Exception\ExpectationException: Current page is "/protected-page?destination=/subdirectory/node/1&protected_page=1", but "/protected-page?destination=/node/1&protected_page=1" expected.

Steps to reproduce

Run tests.

Proposed resolution

Create MR with test fixes.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States markdorison

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

Comments & Activities

  • Issue created by @markdorison
  • First commit to issue fork.
  • πŸ‡§πŸ‡·Brazil elber Brazil

    Hi I tested in drupal 9.5

    Testing Drupal\Tests\protected_pages\Functional\ProtectedPagesAccess
    ..                                                                  2 / 2 (100%)
    
    Time: 00:13.218, Memory: 12.00 MB
    
    OK (2 tests, 31 assertions)
    
    Remaining self deprecation notices (22)
    
      22x: Creating an instance of this class is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. Use Database::getConnection()->condition() instead. See https://www.drupal.org/node/3159568
        11x in ProtectedPagesAccess::testProtectedPageAccess from Drupal\Tests\protected_pages\Functional
        11x in ProtectedPagesAccess::testProtectedPageConfigurationAccess from Drupal\Tests\protected_pages\Functional

    I also tested in drupal 10.1

    Testing Drupal\Tests\protected_pages\Functional\ProtectedPagesAccess
    ..                                                                  2 / 2 (100%)
    
    Time: 00:10.705, Memory: 10.00 MB
    
    OK (2 tests, 31 assertions)

    Like you saw all the tests are passing in both cases.

Production build 0.71.5 2024