Kinglozzer\SilverStripeColumnedList\Tests\ColumnedListTest
Synopsis
class ColumnedListTest
extends SapphireTest
{
- // methods
- public void testStackWithNoRemainder()
- public void testStackWithFewItems()
- public void testStackLeftHeavyWithRemainder()
- public void testStackRightHeavyWithRemainder()
- public void testStackRightHeavyWithRemainderEven()
- public void testStacked()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Methods
public
- testStackLeftHeavyWithRemainder() — Check breaking into columns with remainder works as expected: | 1 | 3 | 5 | | 2 | 4 | _ |
- testStackRightHeavyWithRemainder() — Check breaking into "right-heavy" columns with remainder works as expected: | 1 | 2 | 4 | | _ | 3 | 5 |
- testStackRightHeavyWithRemainderEven() — Check breaking into "right-heavy" columns with remainder works as expected: | 1 | 2 | 3 | 5 | | _ | _ | 4 | 6 |
- testStackWithFewItems() — Check breaking into columns with less items than columns works as expected: | 1 | 2 | _ |
- testStackWithNoRemainder() — Check breaking into columns with no remainder works as expected: | 1 | 3 | | 2 | 4 |
- testStacked() — Test the template method returns expected data.