public function testInvalidLanguageCodeCheck() { CurrentLocale::shouldReceive('code')->once()->andReturn('lkasdljsdf'); $this->assertEquals('<<NTA>>', lang($this->model, 'title')); }
public function testLocaleSetup() { CurrentLocale::shouldReceive('code')->once()->andReturn('code'); App::shouldReceive('setLocale')->with('code')->once(); with(new LocaleComposer())->compose(); }