Skip to content

Commit

Permalink
fix locale selection, updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Sep 9, 2014
1 parent 171f8f1 commit 87bb2a5
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 78 deletions.
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ cmf_search:
lunetics_locale:
strict_mode: true
guessing_order:
- cookie
- router
- cookie
- browser
allowed_locales: %locales%

Expand Down
7 changes: 6 additions & 1 deletion app/tests/StaticPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ public function testContent($url, $title)
public function contentDataProvider()
{
return array(
array('/en', 'Homepage'),
array('/fr', 'Page principale'),
array('/de', 'Startseite'),
array('/en/projects', 'The projects'),
array('/en/projects/cmf', 'Content Management Framework'),
array('/en/company', 'The Company'),
array('/en/company/team', 'The Team'),
array('/fr/company/team', 'The Team'),
array('/de/company/team', 'The Team'),
array('/en/company/more', 'More Information'),
array('/demo', 'Routing demo'),
array('/demo/controller', 'Explicit Controller'),
Expand All @@ -39,7 +44,7 @@ public function contentDataProvider()
public function testJson()
{
$client = $this->createClient();
$client->request('GET', '/de/company/team', array(), array(), array(
$client->request('GET', '/en/company/team', array(), array(), array(
'HTTP_ACCEPT' => 'application/json',
)
);
Expand Down
Loading

0 comments on commit 87bb2a5

Please sign in to comment.