Skip to content

Commit 1f82087

Browse files
committed
add more assertions
1 parent 1d94027 commit 1f82087

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Feature/ExportPostmanTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public function test_rules_printing_export_to_human_readable_works()
190190
$this->assertCount(1, $fields->where('key', 'field_2')->where('description', 'The field 2 field is required., The field 2 must be an integer.'));
191191
$this->assertCount(1, $fields->where('key', 'field_3')->where('description', '(Optional), The field 3 must be an integer.'));
192192
$this->assertCount(1, $fields->where('key', 'field_4')->where('description', '(Nullable), The field 4 must be an integer.'));
193+
// the below fails locally, but passes on GitHub actions?
193194
$this->assertCount(1, $fields->where('key', 'field_5')->where('description', 'The field 5 field is required., The field 5 must be an integer., The field 5 must not be greater than 30., The field 5 must be at least 1.'));
194195

195196
/** This looks bad, but this is the default message in lang/en/validation.php, you can update to:.
@@ -198,6 +199,8 @@ public function test_rules_printing_export_to_human_readable_works()
198199
**/
199200
$this->assertCount(1, $fields->where('key', 'field_6')->where('description', 'The selected field 6 is invalid.'));
200201
$this->assertCount(1, $fields->where('key', 'field_7')->where('description', 'The field 7 field is required.'));
202+
$this->assertCount(1, $fields->where('key', 'field_8')->where('description', 'validation.'));
203+
$this->assertCount(1, $fields->where('key', 'field_9')->where('description', 'The field 9 field is required., The field 9 must be a string.'));
201204
}
202205

203206
public function providerFormDataEnabled(): array

0 commit comments

Comments
 (0)