Example #1
0
 public function testParentRelationQuery()
 {
     $nodes = Category::has('parent')->whereIn('id', [1, 2]);
     $this->assertEquals(1, $nodes->count());
     $this->assertEquals(2, $nodes->first()->getKey());
 }