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