Remove broken test accessing Drupal.org

Created on 20 June 2024, 7 days ago

Problem/Motivation

Tests are failing β†’ , and the failing test is because it's accessing an external website (www.drupal.org). I'm pretty sure tests should not attempt to access Drupal.org, which is why a 403 (forbidden) response code is being returned. I understand that redirecting to an external URL is important functionality, but there should be a different way to test that.

Steps to reproduce

1) Drupal\Tests\r4032login\Functional\AuthenticatedRedirectTest::testAuthenticatedRedirect with data set #2 ('https://www.drupal.org', 'admin/config', 200, 'https://www.drupal.org')
Behat\Mink\Exception\ExpectationException: Current response status code is 403, but 200 expected.

/var/www/html/vendor/behat/mink/src/WebAssert.php:794
/var/www/html/vendor/behat/mink/src/WebAssert.php:130
/var/www/html/modules/contrib/r4032login/tests/src/Functional/AuthenticatedRedirectTest.php:64
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

Proposed resolution

Remove the broken/invalid test for now.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

2.2

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024