Skip to content

Instantly share code, notes, and snippets.

@afestein
Created March 17, 2014 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afestein/9592178 to your computer and use it in GitHub Desktop.
Save afestein/9592178 to your computer and use it in GitHub Desktop.
class LandingRoutesTest extends SeededTestCase {
public function testInvalidLandingPageReroutesToLanguageSpecificHome() {
$this->call('GET', '/zh-hans/landing/www.dudpage.com');
$this->assertResponseStatus(302);
$this->assertRedirectedTo('/zh-hans');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment