public function testMacro() { $nestable = new \Nestable\Services\NestableService(); $nested = $nestable->make($this->categories); $nested->macro('test', function () { return 'Nestable'; }); $this->assertTrue($nested->hasMacro('test')); }