public function test_index() { $collection = Jam::all('test_city')->load_fields(array('id' => 1, 'name' => 'London')); $items = array('name' => Tart::column()); $index = Tart::index($collection, 0, $items); $this->assertInstanceOf('Tart_Index', $index); $this->assertSame($collection, $index->collection()); $this->assertSame($items, $index->content()->items()); }