/** * returns the decorated list from the owner. Decorates the list * with pagination, filtering and sorting by default * @param SS_List $list * @param array $options * @return PaginatedList */ public function getDecoratedList(SS_List $list, array $options = array()) { return PaginatedList::create(FilterableList::create(SortableList::create($list, $options)->getList())->getList(), $options); }
/** * @covers BehEh\Sulphur\FilterableList::offsetGet */ public function testOffsetGet() { $this->assertInstanceOf('BehEh\\Sulphur\\Filterable', $this->list->offsetGet(0)); }