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