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

Fixed "Empty validation message for file input when sent array for file input #184" #185

Merged
merged 8 commits into from
Aug 28, 2019
Merged
Prev Previous commit
Next Next commit
Update InputTest.php
  • Loading branch information
ruzann authored Aug 7, 2018
commit a0c9897d59d007deb95fa7f52567c1dfc02f8003
5 changes: 2 additions & 3 deletions test/InputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ public function testDefaultGetValue()

public function testValueMayBeInjected()
{
$valueRaw = $this->
();
$valueRaw = $this->getDummyValue();

$this->input->setValue($valueRaw);
$this->assertEquals($valueRaw, $this->input->getValue());
Expand Down Expand Up @@ -942,7 +941,7 @@ protected function createNonEmptyValidatorMock($isValid, $value, $context = null
protected function getDummyValue($raw = true)
{
if ($raw) {
return 'foo1';
return 'foo';
} else {
return 'filtered';
}
Expand Down