Exemplo n.º 1
0
 public function testCurrentAccountIsSet()
 {
     $view = m::mock(ViewStub::class)->makePartial();
     $composer = new ApplicationComposer();
     $composer->compose($view);
     $view->shouldHaveReceived('with')->once()->withArgs(['account', CurrentAccount::translated()]);
 }
Exemplo n.º 2
0
 public function compose($view)
 {
     $view->with('account', CurrentAccount::translated());
 }