This repository was archived by the owner on Jan 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -542,11 +542,14 @@ public function testValidateCollection()
542
542
// @codingStandardsIgnoreStart
543
543
$ this ->assertFalse ($ isValid );
544
544
$ this ->assertCount (2 , $ messages );
545
+
545
546
$ this ->assertArrayHasKey ('email ' , $ messages [0 ]);
547
+ $ this ->assertCount (1 , $ messages [0 ]['email ' ]);
546
548
$ this ->assertContains ('Value is required and can \'t be empty ' , $ messages [0 ]['email ' ]);
549
+
547
550
$ this ->assertArrayHasKey ('email ' , $ messages [1 ]);
548
- $ this ->assertNotContains ('Value is required and can \'t be empty ' , $ messages [1 ]['email ' ]);
549
551
$ this ->assertCount (3 , $ messages [1 ]['email ' ]);
552
+ $ this ->assertNotContains ('Value is required and can \'t be empty ' , $ messages [1 ]['email ' ]);
550
553
$ this ->assertContains ('\'tom \' is not a valid hostname for the email address ' , $ messages [1 ]['email ' ]);
551
554
$ this ->assertContains ('The input does not match the expected structure for a DNS hostname ' , $ messages [1 ]['email ' ]);
552
555
$ this ->assertContains ('The input appears to be a local network name but local network names are not allowed ' , $ messages [1 ]['email ' ]);
You can’t perform that action at this time.
0 commit comments