Problem/Motivation
drupal-check results on commit hash: source : [git] https://git.drupal.org/project/maxlength 3235f5ca1a7532b29612b027f02f949bde2bbe5f
source : http://cgit.drupalcode.org/maxlength
------ -------------------------------------------------------------------------------
Line tests/src/FunctionalJavascript/MaxlengthCustomWidgetTest.php
------ -------------------------------------------------------------------------------
13 Class Drupal\Tests\maxlength\FunctionalJavascript\MaxlengthCustomWidgetTest
extends deprecated class Drupal\FunctionalJavascriptTests\JavascriptTestBase.
30 Call to method setUp() of deprecated class Drupal\Tests\BrowserTestBase.
------ -------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line tests/src/FunctionalJavascript/MaxlengthJavascriptTest.php
------ -----------------------------------------------------------------------------------
16 Class Drupal\Tests\maxlength\FunctionalJavascript\MaxlengthJavascriptTest extends
deprecated class Drupal\FunctionalJavascriptTests\JavascriptTestBase.
------ -----------------------------------------------------------------------------------
[ERROR] Found 3 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | maxlength-d9-3042749-17.patch | 4.68 KB | primsi |
| #17 | maxlength-d9-3042749-17.interdiff.txt | 1.88 KB | primsi |
| #14 | maxlength-d9-3042749-14.patch | 3.87 KB | primsi |
| #14 | maxlength-d9-3042749-14.interiff.txt | 881 bytes | primsi |
| #10 | maxlength-d9-3042749-10.patch | 3.76 KB | primsi |
Comments
Comment #2
nlisgo commentedI'm going to take a look at this one. Looks like a case of simpletest to phpunit migration.
Comment #3
nlisgo commentedComment #4
nlisgo commentedComment #6
nlisgo commentedThe statusCodeEquals check isn't adding anything here, I believe. Has just been removed in other similar instances: (For example: https://www.drupal.org/project/drupal/issues/2942900).
Comment #7
berdirRemoving them makes sense to me.
Lets also add $defaultTheme now to these tests, and the core_version_requirement key per https://www.drupal.org/node/3070687.
I also had a schema error when trying to run the tests locally, not sure what's up with that.
Comment #8
shuva.15 commentedThe deprecated code was not updated for test files. I have updated them accordingly.
Comment #9
akashkumar07 commentedComment #10
primsi commentedAddressed #7. Got schema errors too, not quite sure about the connection there.
Comment #11
primsi commentedComment #12
primsi commentedComment #13
berdirTests fail because of running them with PHP 5.6
we should only require 8.8 if that's actually necessary, much easier to get ^8.7.7 patches committed.
That means we also need it in the test module, as support for leaving it out for test modules is only in 8.8.x (not even in a release yet afaik)
Comment #14
primsi commentedAddressed #13
Comment #15
berdirHm, failed against 8.8, could be that something with the classes doesn't work with the stark theme? (8.7 doesn't respect that so maybe that's why it passes)
Comment #16
berdirMeant to set to needs work.
Comment #17
primsi commentedSwitching to classy and addressing the schema error.
Comment #18
berdirYay. This now doesn't just make it compatible with D9 but also fixes the tests for 8.8.
Comment #20
dawehnerThis looks great, thank you for the good minimal set of changes!
Commited, pushed and tagged as beta5