The insertExampleContent method in ExampleContentTrait currently has hard coded id's for the created entities.
This doesn't allow to call that function twice to create additional entities,which is useful in certain tests.

I removed the id's, and it doesn't break any tests.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mollux created an issue. See original summary.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

++ great idea.

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Sure, makes sense. Thanks!
Committed.

  • drunken monkey committed 176a8d9 on 8.x-1.x authored by mollux
    Issue #2624856 by mollux: Fixed hard-coded IDs in tests' example content...

Status: Fixed » Closed (fixed)

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