extend() public méthode

Extend a custom sender method.
public extend ( $name, callable $registrar )
$name
$registrar callable
 /** @test */
 function it_call_an_extended_method()
 {
     $this->createCategory(['name' => 'customs']);
     $this->notifynder->extend('sendCustom', function ($notification, $app) {
         return new CustomDefaultSender($notification, $app->make('notifynder'));
     });
     $notifications = $this->notifynder->category('customs')->url('w')->from(1)->to(1)->sendCustom();
     $this->assertEquals('w', $notifications->url);
 }