Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit b909ec6

Browse files
committed
Assertions improvments
1 parent b7b1531 commit b909ec6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/CollectionInputFilterTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,14 @@ public function testValidateCollection()
542542
// @codingStandardsIgnoreStart
543543
$this->assertFalse($isValid);
544544
$this->assertCount(2, $messages);
545+
545546
$this->assertArrayHasKey('email', $messages[0]);
547+
$this->assertCount(1, $messages[0]['email']);
546548
$this->assertContains('Value is required and can\'t be empty', $messages[0]['email']);
549+
547550
$this->assertArrayHasKey('email', $messages[1]);
548-
$this->assertNotContains('Value is required and can\'t be empty', $messages[1]['email']);
549551
$this->assertCount(3, $messages[1]['email']);
552+
$this->assertNotContains('Value is required and can\'t be empty', $messages[1]['email']);
550553
$this->assertContains('\'tom\' is not a valid hostname for the email address', $messages[1]['email']);
551554
$this->assertContains('The input does not match the expected structure for a DNS hostname', $messages[1]['email']);
552555
$this->assertContains('The input appears to be a local network name but local network names are not allowed', $messages[1]['email']);

0 commit comments

Comments
 (0)