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