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

Commit

Permalink
Adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Sep 3, 2015
1 parent 58af9cf commit e7ca878
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/CollectionInputFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,17 @@ public function getValidCollectionData()
[
'foo' => ' bazbat ',
'bar' => '12345',
'baz' => '',
'nest' => [
'foo' => ' bazbat ',
'bar' => '12345',
'baz' => '',
],
],
[
'foo' => ' batbaz ',
'bar' => '54321',
'baz' => '',
'nest' => [
'foo' => ' batbaz ',
'bar' => '54321',
'baz' => '',
],
]
];
Expand Down Expand Up @@ -307,7 +303,7 @@ public function testGetValues()

$this->assertCount(2, $this->filter->getValidInput());
foreach ($this->filter->getValidInput() as $validInputs) {
$this->assertCount(4, $validInputs);
$this->assertCount(3, $validInputs);
}
}

Expand Down Expand Up @@ -360,31 +356,25 @@ public function testGetMessagesForInvalidInputs()
[
'foo' => ' bazbattoolong ',
'bar' => '12345',
'baz' => '',
'nest' => [
'foo' => ' bazbat ',
'bar' => '12345',
'baz' => '',
],
],
[
'foo' => ' bazbat ',
'bar' => 'notstring',
'baz' => '',
'nest' => [
'foo' => ' bazbat ',
'bar' => '12345',
'baz' => '',
],
],
[
'foo' => ' bazbat ',
'bar' => '12345',
'baz' => '',
'nest' => [
// missing 'foo' here
'bar' => '12345',
'baz' => '',
],
],
];
Expand Down Expand Up @@ -506,7 +496,6 @@ public function testNonRequiredFieldsAreValidated()
'nest' => [
'foo' => ' bazbat ',
'bar' => '12345',
'baz' => '',
],
]
];
Expand Down

0 comments on commit e7ca878

Please # to comment.