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.
Run against commit df38165d74514d174f8928b5708bcc393650c39a.
------ -----------------------------------------------------------------------------------------
Line modules/ctools_views/src/Tests/CToolsViewsBasicViewBlockTest.php
------ -----------------------------------------------------------------------------------------
58 Call to deprecated method assertFieldByXPath() of class Drupal\Tests\BrowserTestBase.
69 Call to deprecated method assertRaw() of class Drupal\Tests\BrowserTestBase.
86 Call to deprecated method assertRaw() of class Drupal\Tests\BrowserTestBase.
103 Call to deprecated method assertFieldByXPath() of class Drupal\Tests\BrowserTestBase.
158 Call to deprecated method assertText() of class Drupal\Tests\BrowserTestBase.
159 Call to deprecated method assertText() of class Drupal\Tests\BrowserTestBase.
175 Call to deprecated method assertNoText() of class Drupal\Tests\BrowserTestBase.
176 Call to deprecated method assertNoText() of class Drupal\Tests\BrowserTestBase.
192 Call to deprecated method assertNoText() of class Drupal\Tests\BrowserTestBase.
193 Call to deprecated method assertNoText() of class Drupal\Tests\BrowserTestBase.
250 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
265 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
266 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
273 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
278 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
281 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
303 Call to deprecated method assertFieldByXPath() of class Drupal\Tests\BrowserTestBase.
304 Call to deprecated method assertFieldByXPath() of class Drupal\Tests\BrowserTestBase.
320 Call to deprecated method assertNoFieldByXPath() of class Drupal\Tests\BrowserTestBase.
321 Call to deprecated method assertNoFieldByXPath() of class Drupal\Tests\BrowserTestBase.
332 Call to deprecated method assertFieldByXPath() of class Drupal\Tests\BrowserTestBase.
344 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
354 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
361 Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase.
------ -----------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
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.
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#23 | 3041908-23.patch | 5 KB | Manuel Garcia |
#23 | interdiff-3041908-20-23.txt | 1.45 KB | Manuel Garcia |
#20 | 3041908-20.patch | 5.01 KB | Manuel Garcia |
#20 | interdiff-3041908-18-20.txt | 1.46 KB | Manuel Garcia |
#19 | 3041908-18.patch | 5.01 KB | Manuel Garcia |
Comments
Comment #2
benjifisherComment #3
joelpittet@josephdpurcell could you run that against dev? I think half of those are fixed.
Comment #4
josephdpurcell CreditAttribution: josephdpurcell at Bounteous commentedYes! Sorry! I've updated the description to use a report against the latest dev.
Comment #5
benjifisherComment #6
joelpittetThanks you, did you want to tackle those?
Is this part of a master plan for D9 @benjifisher?
Comment #7
benjifisher@joelpittet:
The immediate plan is to kick-start the process during the contribution day (tomorrow, 2019-03-23) at MidCamp. We plan to generate a lot of reports like the one in the IS here. For now, we want to get an idea of how much work there is to be done.
Once we get through the list of the 100 most-installed modules, maybe we will have time to start fixing the deprecations.
To find the other issues, search for the issue tag: Drupal 9 compatibility.
Comment #8
joelpittetThanks @benjifisher for bringing me up-to-date.
Comment #9
thallesFollow the patch!
Comment #11
joelpittet@thalles have a look at the docblock above
assertFieldByXPath
it will give you hints how to do it. For all of those because the value is NULL you can do something like this:Comment #12
thallesWould it be this?
Comment #13
joelpittetI believe so, yes, give that a try for all of those.
Comment #14
thallesFollow the patch!
Comment #15
thallesFollow the most complete patch!
Comment #17
joelpittetThese ones the expected value is in argument 3 instead of 2
I'm not sure about the page 1 response, maybe it's in an attribute of an HTML tag or something?
Comment #18
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer and at Appnovation for Pfizer, Inc. commentedRe #17 it looks like that was fixed on #3043399: Replace deprecated assertEqual() in CToolsViewsBasicViewBlockTest file already, rerolling.
Also fixing my own review while I was at it:
I believe these should rather use
$this->assertSession()->fieldExists()
Comment #19
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer and at Appnovation for Pfizer, Inc. commentedJesus, wrong patches sorry.
Comment #20
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer and at Appnovation for Pfizer, Inc. commentedWe should also use
pageTextNotContains
since we're checking for text only.Comment #23
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer and at Appnovation for Pfizer, Inc. commentedTest needs adjustment because its picking up the valid text:
Displaying 1 - 3 of 5 Showing 3 records on page 1
In reality what we're trying to do here is assert that the pager isn't displayed, so I propose we check the existence of the element itself.
Comment #24
thallesLooks good!
Comment #26
joelpittetThanks all, I've committed this to the latest dev branch.