public function testWithDepthWithCustomKeyWorks() { $node = Category::whereIsRoot()->withDepth('level')->first(); $this->assertTrue(isset($node['level'])); }