Problem/Motivation

In #3075490: Move simpletest module to contrib we're trying to remove the simpletest module from core.

If we study the test results in comment #28, we can see that there are two types of tests which require the simpletest module: Those which reference the module directly, and those which rely on DB dumps and other fixtures which refer to the simpletest module. #3075490-28: Move simpletest module to contrib

This issue is scoped with changing tests which don't require changes to fixtures. The current list is:

  • core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php
  • core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
  • core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php
  • core/modules/migrate_drupal/tests/src/Kernel/StateFileExists.php
  • core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php
  • core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
  • core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php

Proposed resolution

Change the tests so they don't need simpletest.

Remaining tasks

Commit patch #4.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

N/A

CommentFileSizeAuthor
#4 interdiff.txt2.51 KBmile23
#4 3082414_4.patch2.49 KBmile23
#2 3082414_2.patch5 KBmile23

Comments

Mile23 created an issue. See original summary.

mile23’s picture

Status: Active » Needs review
StatusFileSize
new5 KB

An early patch.

Note that a couple of these mark the test incomplete, which doesn't actually fail drupalci.

Status: Needs review » Needs work

The last submitted patch, 2: 3082414_2.patch, failed testing. View results

mile23’s picture

Status: Needs work » Needs review
StatusFileSize
new2.49 KB
new2.51 KB

Given that we're likely going to keep a stub simpletest module in core #3057420-46: [meta] How to deprecate Simpletest with minimal disruption, we can loosen our expectations on some of the tests here. We'll encounter these tests as we remove features from the simpletest module in D9.

This patch removes references to simpletest module from tests that truly don't need it. This is based on analysis of test fails in #3075490-28: Move simpletest module to contrib, where we remove the simpletest module completely.

dww’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

#4 looks good to me. It simply removes 'simpletest' from the $modules (to-install) list on 4 tests. Bot came back all green for this, so clearly, those are completely unnecessary references. Let's remove them to make things easier for #3075490: Move simpletest module to contrib (and generally, to remove overhead and bloat that we don't need).

Thanks!
-Derek

larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Committed 1f1dfce and pushed to 8.8.x. Thanks!

  • larowlan committed 1f1dfce on 8.8.x
    Issue #3082414 by Mile23: Remove non-fixture references to simpletest...

Status: Fixed » Closed (fixed)

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