Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Checking the module for deprecated functions in Drupal 9 Deprecated Code Report found out that there are deprecated tests.
------ ------------------------------------------------------------------------------------------------------
Line src/Tests/FlexsliderTest.php
------ ------------------------------------------------------------------------------------------------------
14 Class Drupal\flexslider\Tests\FlexsliderTest extends deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
45 Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
------ ------------------------------------------------------------------------------------------------------
They should be converted into PHPUnit tests.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#4 | flexslider-3114922-4.patch | 14.68 KB | andralex |
Comments
Comment #2
andralex CreditAttribution: andralex at EPAM Systems for EPAM Systems commentedComment #3
andralex CreditAttribution: andralex at EPAM Systems for EPAM Systems commentedHere is a proposed patch with converted tests and code style fixes as well.
Comment #4
andralex CreditAttribution: andralex at EPAM Systems for EPAM Systems commentedI have used the wrong assertion by mistake. This should now work.
Comment #6
amaria CreditAttribution: amaria as a volunteer commentedI have reviewed and pushed this to dev, with some minor changes to a few asserts.