public function testMacro()
 {
     Form::macro('foo', function () {
         return '<article type="bar">';
     });
     $html = Form::foo();
     $expected = '<article type="bar">';
     $this->assertEquals($expected, $html);
 }
Example #2
0
    public function testMacro()
    {
        $this->markTestSkipped('Waiting for a fix on Power Pack Form class');

        Form::macro(
            'foo',
            function () {
                return '<article type="bar">';
            }
        );

        $html = Form::foo();
        $expected = '<article type="bar">';
        $this->assertEquals($expected, $html);
    }