public function testMacro() { Form::macro('foo', function () { return '<article type="bar">'; }); $html = Form::foo(); $expected = '<article type="bar">'; $this->assertEquals($expected, $html); }
/** * Register a custom macro. * * @param string $name * @param callable $macro * @return void * @static */ public static function macro($name, $macro) { //Method inherited from \Illuminate\Html\FormBuilder \Bootstrapper\Form::macro($name, $macro); }
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); }