Follow-up to #2285083: Rename contact category to contact form

Problem/Motivation

class ContactStorageTest extends ContactSitewideTest { so all test* methods are executed twice
This is by design.

Proposed resolution

Add a comment so it is clear that this is by design to prevent removal

Remaining tasks

Review

User interface changes

no

API changes

no

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost’s picture

Title: Test in ContactSitewideTest are run twice » Tests in ContactSitewideTest are run twice
larowlan’s picture

Fwiw it was by design, to ensure contact module still worked with storage on. Maybe if we named the method the same and called the parent first it would be obvious what the intention was, plus we'd save another install.

aboros’s picture

Assigned: Unassigned » aboros
Issue tags: +Drupalaton 2014

picking up.

aboros’s picture

Assigned: aboros » Unassigned
Issue tags: -Drupalaton 2014

It leads to areas where i have never been before, so i unassign it in case someone more experienced would solve it.

undertext’s picture

Status: Active » Needs review
FileSize
934 bytes

Status: Needs review » Needs work

The last submitted patch, 5: tests_in_contactsitewidetest_are_run_twice.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: tests_in_contactsitewidetest_are_run_twice.patch, failed testing.

andypost’s picture

@larowlan Suppose ContactStorageTest just needs a extended comment why this test is inherited and that's why the subject happens.
Also it would be great to add @see ContactStorageTest to ContactSitewideTest

larowlan’s picture

Status: Needs work » Needs review
FileSize
1.16 KB

Sounds good

larowlan’s picture

Issue summary: View changes
larowlan’s picture

Title: Tests in ContactSitewideTest are run twice » Document that Tests in ContactSitewideTest are run twice

Status: Needs review » Needs work

The last submitted patch, 10: contact-storage-sitewide.1.patch, failed testing.

Status: Needs work » Needs review
andypost’s picture

Status: Needs review » Reviewed & tested by the community

Looks great!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 155aa8d and pushed to 8.0.x. Thanks!

  • alexpott committed 155aa8d on 8.0.x
    Issue #2317309 by larowlan, undertext: Document that Tests in...

Status: Fixed » Closed (fixed)

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