Nestable\Tests\MacrosTraitTest::testRunMacro PHP Méthode

testRunMacro() public méthode

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