/** * @depends testAppendCategory */ public function testOrder() { $this->testAppendCategory(); $cache = Setting_Category::all(); $i = 0; foreach ($cache as $name => $category) { self::assertEquals($this->names[$i], $name); ++$i; } }
public function categories() { return Setting_Category::all(); }