示例#1
0
 /**
  * @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;
     }
 }
示例#2
0
 public function categories()
 {
     return Setting_Category::all();
 }