/** * * * @param $locale * @return string * @static */ public static function routeToLang($locale) { return \SleepingOwl\Admin\Router::routeToLang($locale); }
/** @test */ public function it_generates_url_to_lang_js() { $this->urlGenerator->shouldReceive('route')->with('test-prefix.lang', 'en')->once()->andReturn('some-route'); $route = $this->instance->routeToLang('en'); $this->assertEquals('some-route', $route); }