public function testNewNestedSetQueryIsOrderedByCustom() { $category = new OrderedCategory(); $builder = $category->newNestedSetQuery(); $query = $builder->getQuery(); $this->assertNull($query->wheres); $this->assertNotEmpty($query->orders); $this->assertEquals('name', $category->getOrderColumnName()); $this->assertEquals('categories.name', $category->getQualifiedOrderColumnName()); $this->assertEquals($category->getQualifiedOrderColumnName(), $query->orders[0]['column']); }