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.
Follow-up for #3041908: Drupal 9 Deprecated Code Report and #3037233: Replace deprectated UITestBase in CToolsViewsBasicViewBlockTest
for file_unmanaged_copy
and .
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Tests/Wizard/CToolsWizardTest.php
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
Class Drupal\Tests\ctools\Functional\CToolsWizardTest was not found while trying to analyse it - autoloading is probably not configured properly.
------ ------------------------------
------ -----------------------------------------------------------------------------------------
Line modules/ctools_views/tests/src/Functional/CToolsViewsBasicViewBlockTest.php
------ -----------------------------------------------------------------------------------------
158 Call to deprecated method assertText() of class Drupal\Tests\BrowserTestBase.
159 Call to deprecated method assertText() of class Drupal\Tests\BrowserTestBase.
318 Call to deprecated method assertNoFieldByXPath() of class Drupal\Tests\BrowserTestBase.
319 Call to deprecated method assertNoFieldByXPath() of class Drupal\Tests\BrowserTestBase.
------ -----------------------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#17 | interdiff-13-17.txt | 1.52 KB | thalles |
#17 | ctools-Drupal_9_Deprecated_Code-3047026-17-D8.patch | 3.32 KB | thalles |
Comments
Comment #2
joelpittetComment #4
joelpittetComment #5
mglamanJust verifying: this was a test which existed, had a correct namespace but bad placement. This test is now having failures. And by the failures it is OK on PHP7 but not PHP5. This file was never discovered or autoloaded.
Comment #6
joelpittetThat's what I gathered from the result, haven't dug into it yet though.
Comment #7
thallesComment #8
thallesFollow a new patch with modifications on tests
Comment #10
thallesComment #11
joelpittetThanks again @thalles.
Can you explain why this was needing to change?
Did the content type give a false positive or something?
Comment #12
thallesI do not remember well, but if I'm not mistaken I went to the class and looked where it was redirecting
Comment #13
thallesFollow a new patch!
You're right:
Comment #15
thallesComment #16
mglamanIn the tests we have access to the container. You should be able to do
Instead of reaching into the static class.
Comment #17
thallesFollow a new patch!
Comment #19
thallesComment #20
mglamanI'm going to go ahead and mark that as a big ole RTBC!
🎉🙌
This is kind of long, but in tests I generally am more lax about long chains.
Comment #22
joelpittetThanks committed to the latest dev branch.