Skip to content

Commit 1a5f7e3

Browse files
committed
Fix phpunit tests according the new validation messages
1 parent 6a29865 commit 1a5f7e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TranslationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testENMessages()
3737
if ($validator->fails()) {
3838
$messages = $validator->errors()->get('country');
3939
$first = array_shift($messages);
40-
$this->assertEquals($first, 'The country has not a valid country code.');
40+
$this->assertEquals($first, 'The country field is not a valid country code.');
4141
}
4242
}
4343

@@ -65,7 +65,7 @@ public function testENMessagesForAdministrativeAreaValidator()
6565
if ($validator->fails()) {
6666
$messages = $validator->errors()->get('state');
6767
$first = array_shift($messages);
68-
$this->assertEquals($first, 'The state has not a valid administrative area name.');
68+
$this->assertEquals($first, 'The state field is not a valid state/province.');
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)