Comments

voleger created an issue. See original summary.

voleger’s picture

Title: [PP-1]Update tests » [PP-1] Update tests
StatusFileSize
new11.3 KB

Initial step

dave reid’s picture

I 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.

voleger’s picture

Title: [PP-1] Update tests » Update tests
Status: Postponed » Needs review

Rerolled.
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).

voleger’s picture

StatusFileSize
new60.47 KB
new50.34 KB

Status: Needs review » Needs work

The last submitted patch, 5: xmlsitemap-update_tests-2978936-04.patch, failed testing. View results

voleger’s picture

StatusFileSize
new60.48 KB
new1004 bytes

Fix asserting content

voleger’s picture

Issue summary: View changes
StatusFileSize
new59.47 KB
new1.26 KB

Revert changes in submitEngines method (there is 1 deprecation notice that can be fixed later)

dave reid’s picture

voleger’s picture

StatusFileSize
new56.48 KB

Just reroll

andralex’s picture

StatusFileSize
new7.78 KB

Updated the last patch and replaced some deprecations.

andralex’s picture

Status: Needs work » Needs review
StatusFileSize
new57.34 KB
andralex’s picture

StatusFileSize
new57.46 KB
alex_optim’s picture

Looks good.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community
pifagor’s picture

Status: Reviewed & tested by the community » Needs review
amateichuk’s picture

Status: Needs review » Needs work
StatusFileSize
new96.7 KB

I applied last patch to branch 8.x-1.x, but after running the test I get this report:

andralex’s picture

Status: Needs work » Needs review

@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.

voleger’s picture

Title: Update tests » Update tests for Drupal 9 based testing
StatusFileSize
new0 bytes
new49.63 KB

#13 test against Drupal 9 shows incompatibility in method overrides in the Kernel tests.
Addressed bridge methods to support PHPUnit 6 and PHPUnit 8.

voleger’s picture

StatusFileSize
new60.67 KB
new2.75 KB

Reuploading the patch

voleger’s picture

StatusFileSize
new62.38 KB
new2.35 KB

Address test fails regarding core keys left in info files.
Address CS issues.

voleger’s picture

StatusFileSize
new62.23 KB
new680 bytes

Address missed theme definition in tests

voleger’s picture

Priority: Normal » Major
Related issues: +#3099673: Replace deprecated file_scan_directory()

Now 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.

voleger’s picture

StatusFileSize
new62.24 KB
new685 bytes

Address usage of deprecated service in the test.
So actually looks like we have a single blocker before enabling Drupal 9 testing.

Status: Needs review » Needs work

The last submitted patch, 24: 2978936-24.patch, failed testing. View results

voleger’s picture

Status: Needs work » Needs review
StatusFileSize
new62.99 KB
new1.41 KB

Handle an alias as an entity.

voleger’s picture

StatusFileSize
new62.99 KB
new0 bytes

Wrong doc block for aliasStorage. Doc change, no needs to set tests.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed 0bb3f72 on 8.x-1.x authored by voleger
    Issue #2978936 by voleger, andralex, Tolyan4ik, pifagor, Dave Reid,...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dave reid’s picture

One 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.