[Jobeet] Functional tests with localization (Day 19)

About symfony tutorials, symfony book and API documentation.

Moderators: dwhittle, Ian

[Jobeet] Functional tests with localization (Day 19)

Postby Bloodredangel » Sat Apr 25, 2009 9:32 am

Hello,
I am working on Day 19 of the Jobeet-Tutorial at the moment. I created the language module and so on. We add a functional language Test to jobActions and I tried to execute them. But I encountered several problems, which base upon the new user culture: Everytime the functional test-browser calls "get('/')" and this page was requested before, just a header with "refresh" is sent. Analyzing this data to hold 22 jobs etc. will obviously fail ... I made a work-around with changing the language every time, "get('/')" was calles. So it looks like "get('/index.php/fr/')" and the next time with en ...

Works for me now, but there must be a better solution?!

Greetings, Bloodredangel

Edit: After I finished Day 19, the tests fail again, because now the strings are replaced with french, if language is fr. :(~ :-(~ :sad:
Last edited by Bloodredangel on Sat Apr 25, 2009 10:20 am, edited 1 time in total.
Bloodredangel
Junior Member
 
Posts: 1
Joined: Sat Apr 25, 2009 9:16 am

Return to Documentation

Who is online

Users browsing this forum: No registered users and 0 guests