Ejemplo n.º 1
0
 public function testGetQualifiedOrderColumnName()
 {
     $category = new Category();
     $this->assertEquals($category->getQualifiedOrderColumnName(), $category->getQualifiedLeftColumnName());
 }
Ejemplo n.º 2
0
 public function testNewNestedSetQueryIsOrderedByDefault()
 {
     $category = new Category();
     $builder = $category->newNestedSetQuery();
     $query = $builder->getQuery();
     $this->assertNull($query->wheres);
     $this->assertNotEmpty($query->orders);
     $this->assertEquals($category->getLeftColumnName(), $category->getOrderColumnName());
     $this->assertEquals($category->getQualifiedLeftColumnName(), $category->getQualifiedOrderColumnName());
     $this->assertEquals($category->getQualifiedOrderColumnName(), $query->orders[0]['column']);
 }