Problem/Motivation

Pretty often in unit tests we should check that some function receives values in the exact order. Will be good to invent a helper for such cases.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Murz created an issue. See original summary.

murz’s picture

Attaching a static patch file with those changes, to make it possible to use in composer until #3204538: GitLab Merge Requests Unable to Generate Incremental Patch Files is resolved.

  • Murz committed fbd64ded on 1.3.x
    Issue #3398386 by Murz: Add a helper to test sequences of values
    
murz’s picture

Status: Active » Fixed

Implemented a class Drupal\test_helpers\utils\AssertSequence, see a usage example in the file src/utils/AssertSequence.php.

murz’s picture

Status: Fixed » Closed (fixed)