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