Closed (fixed)
Project:
XML sitemap
Version:
8.x-1.x-dev
Component:
Tests
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2018 at 18:52 UTC
Updated:
4 Jun 2020 at 19:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
volegerInitial step
Comment #3
dave reidI have started to add modern kernel tests with #2987939: Uninstall hook is capable of deleting entire files directory under some configurations so this likely needs a re-roll.
Comment #4
volegerRerolled.
I moved all simpletests into the Functional test. After they will be moved tests require the review (some test possible to move into kernel tests, maybe some helper methods are outdated).
Comment #5
volegerComment #7
volegerFix asserting content
Comment #8
volegerRevert changes in submitEngines method (there is 1 deprecation notice that can be fixed later)
Comment #9
dave reidComment #10
volegerJust reroll
Comment #11
andralex commentedUpdated the last patch and replaced some deprecations.
Comment #12
andralex commentedComment #13
andralex commentedComment #14
alex_optimLooks good.
Comment #15
pifagor commentedComment #16
pifagor commentedComment #17
amateichuk commentedI applied last patch to branch 8.x-1.x, but after running the test I get this report:
Comment #18
andralex commented@Tolyan4ik, could you please run tests using PHP Unit. The Simpletest is now outdated and this issue actually about rewriting tests to PHPUnit. You could refer to documentation page on how to properly run PHPUnit tests.
Comment #19
voleger#13 test against Drupal 9 shows incompatibility in method overrides in the Kernel tests.
Addressed bridge methods to support PHPUnit 6 and PHPUnit 8.
Comment #20
volegerReuploading the patch
Comment #21
volegerAddress test fails regarding core keys left in info files.
Address CS issues.
Comment #22
volegerAddress missed theme definition in tests
Comment #23
volegerNow we can define blockers for Drupal 9 support.
#3099673: Replace deprecated file_scan_directory()
We have Drupal 9 RC on the next week, so bump this issue priority.
Comment #24
volegerAddress usage of deprecated service in the test.
So actually looks like we have a single blocker before enabling Drupal 9 testing.
Comment #26
volegerHandle an alias as an entity.
Comment #27
volegerWrong doc block for aliasStorage. Doc change, no needs to set tests.
Comment #28
pifagor commentedComment #30
pifagor commentedComment #32
dave reidOne follow-up to this that I saw, because we require at least Drupal 8.8, which itself requires at least PHPUnit 6+, we no longer need the directory assertion methods in KernelTestBase, there was no need to rename them, they could have just been removed here.