17/17 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
----------------------------------
Line src/Tests/QuickNodeCloneExcludeParagraphFieldsTests.php
----------------------------------
17 Usage of deprecated trait Drupal\field_ui\Tests\FieldUiTestTrait in class Drupal\quick_node_clone\Tests\QuickNodeCloneExcludeParagraphFieldsTests:
in Drupal 8.7.x and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\field_ui\Traits\FieldUiTestTrait. See
https://www.drupal.org/node/3001664
----------------------------------
[ERROR] Found 1 error
===========
Original summary:
89 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
New deprecations as of 8.8.1
QuickNodeCloneExcludeNodeFieldsTests.php:
- Class 'WebTestBase' is deprecated.
QuickNodeCloneNodeFinder.php:
- Class 'AliasManager' is deprecated.
QuickNodeCloneTests.php:
- Class 'WebTestBase' is deprecated.
Comment | File | Size | Author |
---|---|---|---|
#27 | interdiff-25-27.txt | 202 bytes | Taran2L |
#27 | 3076998-27.patch | 16 KB | Taran2L |
Comments
Comment #2
Tolyan4ik CreditAttribution: Tolyan4ik at EPAM Systems commented17/17 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Tests/QuickNodeCloneExcludeParagraphFieldsTests.php
------ ----------------------------------------------------------------------------------------------------------------------------------------------------
17 Usage of deprecated trait Drupal\field_ui\Tests\FieldUiTestTrait in class Drupal\quick_node_clone\Tests\QuickNodeCloneExcludeParagraphFieldsTests:
in Drupal 8.7.x and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\field_ui\Traits\FieldUiTestTrait. See
https://www.drupal.org/node/3001664
------ ----------------------------------------------------------------------------------------------------------------------------------------------------
[ERROR] Found 1 error
Comment #3
Kristen PolThe issue summary doesn't match the patch. So updating the summary to be based on the comment instead to avoid confusion.
Comment #4
Kristen PolComment #5
Kristen PolSince this has been sitting for 27 days, reviewing this. Tests pass and code has been changed correctly based on the deprecation warning, so marking RTBC.
Comment #6
jkswoods CreditAttribution: jkswoods commentedFurther deprecation notices are reported...
QuickNodeCloneExcludeNodeFieldsTests.php:
QuickNodeCloneNodeFinder.php:
QuickNodeCloneTests.php:
Comment #7
jkswoods CreditAttribution: jkswoods commentedPatch to address #6
Comment #8
jkswoods CreditAttribution: jkswoods commentedComment #10
jkswoods CreditAttribution: jkswoods commentedFixing tests.
Comment #11
jkswoods CreditAttribution: jkswoods commentedComment #13
jkswoods CreditAttribution: jkswoods commentedComment #14
jkswoods CreditAttribution: jkswoods commentedComment #16
jkswoods CreditAttribution: jkswoods commentedRight, two of the tests have been converted to use the new PHPunit structure. ParagraphsTestBase extends WebTestBase, which is simpletest and deprecated so leaving it where it is for now - we can't do anything until paragraphs sort that out.
The namespaces for the PHPUnit-based tests have been updated which was missed in the previous patch, so I'd expect the tests to pass for this one.
The reasoning behind the removal of 'body[0][format]' is it can't be found on the page (
ElementNotFoundException
) and it is not necessary to prove the functionality of the module works.Comment #17
jkswoods CreditAttribution: jkswoods commentedComment #18
jkswoods CreditAttribution: jkswoods commentedFixing coding standards in QuickNodeCloneExcludeParagraphFieldsTest.
Comment #19
jkswoods CreditAttribution: jkswoods at interactive investor commentedComment #20
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedI also removed an unused reference to
Drupal\paragraphs\Tests\Classic\ParagraphsCoreVersionUiTestTrait
since it is Simpletest helper.See #3121134: Remove Simpletest test base classes for more details.
Comment #21
mbovan CreditAttribution: mbovan at MD Systems GmbH commented#3121134: Remove Simpletest test base classes was now committed.
Comment #22
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedThis was missing the core_version_requirement change, and was still using the "path.alias_manager", and not the new "path_alias.manager" as per https://www.drupal.org/node/3092086
Comment #23
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commentedComment #24
Taran2LComment #25
Taran2LThe wrong namespace, one test is missing, let's fix this
Tests on D9+ cannot run because
core_version_requirement
must be committed firstComment #26
Taran2LComment #27
Taran2Lwell, let's try this again
Comment #28
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedRemoving stale assignment
Comment #29
stopopol CreditAttribution: stopopol commentedI just cleanly applied the patch #27 on 8.x-1.x-dev and then used "Upgrade Status"
(https://www.drupal.org/project/upgrade_status) to check for warning or errors. There were no errors, only 8 warnings:
Comment #30
BerdirThe first two are not Drupal core deprecations but deprecations from the address module and the others are because you're missing development dependencies on your site.
Comment #31
stopopol CreditAttribution: stopopol commentedIn that case, it's safe to say that the patch works :)
Comment #32
batigolixI cleanly applied the patch on 8.x-1.x-dev and then used "Upgrade Status" to check for warning or errors.
There were no errors.
I got 2 x the warning "Class Drupal\Tests\paragraphs\Functional\WidgetLegacy\ParagraphsTestBase not found". Could it be that this class has been removed from the paragraphs module?
I checked it using paragraphs 1.12
Comment #33
Berdir> I checked it using paragraphs 1.12
That's why. The new base class is only in paragraphs 8.x-1.x-dev atm, which is also the version that composer.json require-dev specifies.
Comment #34
batigolixI applied the patch without problems (and using paragraphs 1.x-dev) I checked upgrade_status:
Upgrade status does not report any problems. This patch is ready to be committed.
Comment #35
marco-sI have successfully tested the patch with Drupal 9.
Comment #36
Neslee Canil Pinto@Berdir are you ok with #27, I too tested it with the dev version(Paragraphs) which was specified and tests got passed for me in my local machine and no errors/warning where given from Upgrade status module too.
Comment #38
Neslee Canil PintoCommitted to dev.