Problem/Motivation
drupal-check results on commit hash: e5c1c4047f5f1522e5d630bca93d50c61ef6a2c0
------ -------------------------------------------------------------------------------
Line src/Tests/PhpFilterTest.php
------ -------------------------------------------------------------------------------
17 Call to deprecated function entity_load().
38 Call to deprecated method link() of class Drupal\Core\Entity\EntityInterface.
------ -------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line src/Tests/Plugin/views/PhpArgumentValidatorTest.php
------ -----------------------------------------------------------------------------------
16 Class Drupal\php\Tests\Plugin\views\PhpArgumentValidatorTest extends deprecated
class Drupal\views\Tests\ViewKernelTestBase.
36 Call to method setUp() of deprecated class Drupal\views\Tests\ViewKernelTestBase.
------ -----------------------------------------------------------------------------------
[ERROR] Found 4 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3042743-tests-13.patch | 3.41 KB | gábor hojtsy |
| #12 | 3042743-tests.patch | 2.3 KB | gábor hojtsy |
| #10 | 3042743.patch | 1.62 KB | gábor hojtsy |
| #8 | 3042743-d9-8.patch | 9.28 KB | robertwb |
| #5 | 3042743-d9-5.patch | 8.84 KB | fgm |
Comments
Comment #2
daiwik.addweb commented@mcdwayne, Here's the patch for the same, hope this will work for you as per your requirement.
Thanks
Comment #4
amateichuk commentedComment #5
fgmRerolled with more fixes. Remaining issues are about switching from WebTestBase to BrowserTestBase.
PHP Filter, -- Scanned on Thu, 2020-06-04 09:06 FILE: web/modules/contrib/php/src/Tests/PhpTestBase.php STATUS LINE MESSAGE -------------------------------------------------------------------------------- Fix now 13 Class Drupal\php\Tests\PhpTestBase extends deprecated class Drupal\simpletest\WebTestBase. Deprecated 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. Replacement available from drupal:8.6.0. -------------------------------------------------------------------------------- Fix now 28 Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase. Deprecated 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. Replacement available from drupal:8.6.0. -------------------------------------------------------------------------------- FILE: web/modules/contrib/php/src/Tests/PhpUninstallTest.php STATUS LINE MESSAGE -------------------------------------------------------------------------------- Fix now 12 Class Drupal\php\Tests\PhpUninstallTest extends deprecated class Drupal\simpletest\WebTestBase. Deprecated 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. Replacement available from drupal:8.6.0. -------------------------------------------------------------------------------- Fix now 25 Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase. Deprecated 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. Replacement available from drupal:8.6.0. --------------------------------------------------------------------------------Comment #6
japerryThis may sound brash, but I don't think it should support Drupal 9. This is a good time for people to stop bad coding practices ;)
Comment #7
tjtj commentedHow does one apply the patch in #5 which goes into many different directories?
Comment #8
robertwb commentedPatch in #5 fails against the July 2020 release of Drupal 9 because it uses a deprecated argument for @entity.manager -- re-rolled patch attached.
Comment #9
tjtj commentedSorry to be dumb, But how does one apply this patch that fixes multiple files?
Comment #10
gábor hojtsyRerolled following these.
Comment #12
gábor hojtsyLet's see WTB, this will likely fail due to different methods.
Comment #13
gábor hojtsyCast condition results for test.
Comment #15
gábor hojtsyOk that was easier than expected. Thanks all!