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

Required does not work, when array is empty #167

Merged
merged 5 commits into from
Dec 13, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update ArrayInputTest.php
  • Loading branch information
eweso authored Jul 12, 2018
commit 0812223722da1b82affe53d480fb4b3c2d04f5c5
3 changes: 1 addition & 2 deletions test/ArrayInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ public function testRequiredWithoutFallbackAndValueIsEmptyArrayThenFail()
$input = $this->input;
$input->setRequired(true);
$input->setValue([]);

$this->assertFalse(
$input->isValid(),
'isValid() should be return always false when no fallback value, is required, and not data is set.'
'isValid() should be return always false when no fallback value, is required, and value is empty array.'
);
$this->assertRequiredValidationErrorMessage($input);
}
Expand Down