HippoStep\SilverStripePhpUnit9\SapphireTestPhpUnit9::assertListEquals
Assert that the given {@link SS_List} includes only DataObjects matching the given key-value pairs. Each match must correspond to 1 distinct record.
Example -------- Check that *only* the entries Sam Minnee and Ingo Schommer exist in $members. Order doesn't matter: $this->assertListEquals([ ['FirstName' =>'Sam', 'Surname' => 'Minnee'], ['FirstName' => 'Ingo', 'Surname' => 'Schommer'], ], $members);
Signature
public function assertListEquals(mixed
$matches,
SS_List
$list,
[string
$message = ''] )