Skip to content

Commit

Permalink
Add test for multiple get
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Zschiesche committed Feb 15, 2018
1 parent fac8b8e commit 8136c0a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/FormFieldSorterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,19 @@ public function testAddAfterGet ()
$sorter->getSortedFieldNames();
$sorter->add("b", null);
}


/**
* Multiple gets should be supported and return the same thing
*
* @throws \Becklyn\OrderedFormBundle\Exception\OrderedFormException
*/
public function testMultipleGet ()
{
$sorter = new FormFieldSorter();
$sorter->add("a", null);
$a = $sorter->getSortedFieldNames();
$b = $sorter->getSortedFieldNames();
self::assertEquals($a, $b);
}
}

0 comments on commit 8136c0a

Please sign in to comment.