Problem/Motivation
drupal-check results on commit hash:
source : [git] https://git.drupal.org/project/cloudflare 288657c92dfed1217a06d8476190f2a945025c2a
source : http://cgit.drupalcode.org/cloudflare
------ ---------------------------------------------------------------------
Line modules/cloudflarepurger/tests/src/Unit/CredentialTestCheckTest.php
------ ---------------------------------------------------------------------
28 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
------ ---------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line modules/cloudflarepurger/tests/src/Unit/DiagnosticCheckTestBase.php
------ ---------------------------------------------------------------------
67 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
------ ---------------------------------------------------------------------
------ ---------------------------------------------------
Line src/Form/SettingsForm.php
------ ---------------------------------------------------
161 Call to deprecated function drupal_set_message().
233 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
------ ---------------------------------------------------
Line src/Form/ZoneSelectionForm.php
------ ---------------------------------------------------
113 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
------ ----------------------------------------------------------
Line tests/src/Functional/CloudFlareAdminSettingsFormTest.php
------ ----------------------------------------------------------
55 Call to deprecated method assertUrl() of class
Drupal\Tests\BrowserTestBase.
57 Call to deprecated method assertRaw() of class
Drupal\Tests\BrowserTestBase.
58 Call to deprecated method assertRaw() of class
Drupal\Tests\BrowserTestBase.
59 Call to deprecated method assertRaw() of class
Drupal\Tests\BrowserTestBase.
74 Call to deprecated method assertUrl() of class
Drupal\Tests\BrowserTestBase.
76 Call to deprecated method assertRaw() of class
Drupal\Tests\BrowserTestBase.
77 Call to deprecated method assertRaw() of class
Drupal\Tests\BrowserTestBase.
101 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
116 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
130 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
------ ----------------------------------------------------------
------ -----------------------------------------------------------------
Line tests/src/Functional/CloudFlareAdminSettingsInvalidFormTest.php
------ -----------------------------------------------------------------
52 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
53 Call to deprecated method assertField() of class
Drupal\Tests\BrowserTestBase.
54 Call to deprecated method assertField() of class
Drupal\Tests\BrowserTestBase.
55 Call to deprecated method assertField() of class
Drupal\Tests\BrowserTestBase.
56 Call to deprecated method assertField() of class
Drupal\Tests\BrowserTestBase.
67 Call to deprecated method assertResponse() of class
Drupal\Tests\BrowserTestBase.
94 Call to deprecated method assertUrl() of class
Drupal\Tests\BrowserTestBase.
109 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
124 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
139 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
------ -----------------------------------------------------------------
------ --------------------------------------------------
Line tests/src/Functional/ComposerDependencyTest.php
------ --------------------------------------------------
48 Call to deprecated method assertRaw() of class
Drupal\Tests\BrowserTestBase.
57 Call to deprecated method assertNoRaw() of class
Drupal\Tests\BrowserTestBase.
------ --------------------------------------------------
------ ----------------------------------------------
Line tests/src/Unit/ClientIpRestoreTest.php
------ ----------------------------------------------
36 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
67 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
80 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
122 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
127 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
------ ----------------------------------------------
[ERROR] Found 32 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | drupal_9_deprecated_code-3042953-14.patch | 1.03 KB | jcnventura |
| #9 | interdiff-4-9.txt | 342 bytes | suzymasri |
| #9 | drupal_9_deprecated_code-3042953-9.patch | 14.26 KB | suzymasri |
| #4 | drupal_9_deprecated_code-3042953-4.patch | 13.93 KB | sergiu stici |
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #4
sergiu stici commentedCorrected codesniffer.
Comment #5
vijaycs85Looks good.
Comment #6
luke.leberThese changes look ok. We are quite excited to scratch another module off the D9 migration blockers list :-)
Comment #7
vijaycs85just for updates: I have been trying to test the fixes locally and found problems with the latest version of drupal-check(see here for more details). Will commit once confirmed locally.
Comment #8
jmoreira commentedPatch #4 works for me too. Any plans to get this in?
Comment #9
suzymasriPatch #4 fixes all drupal-check reported errors. I just added the `core_version_requirement` key, patch attached.
This was tested with Drupal Check 1.1.1 and issue in #7 is resolved too.
Comment #11
vijaycs85Looks good. pushed in. Will cut a new release shortly.
Comment #12
jcnventuraComment #13
jcnventuraAnd active again because the cloudflarepurger submodule needs this line as well:
core_version_requirement: ^8 || ^9Comment #14
jcnventuraComment #16
jcnventura