public function testIndexActionWithPostData()
{
$destination = array(1 => array(), 2 => array(), 3 => array(), 4 => array(), 5 => array());
$destination[1][1] = array();
$destination[1][1]['dst_id'] = '1';
$destination[1][1]['locale'] = 'fr_FR';
$destination[1][1]['value'] = 'Vues';
$destination[2][2] = array();
$destination[2][2]['dst_id'] = '2';
$destination[2][2]['locale'] = 'fr_FR';
$destination[2][2]['value'] = 'Stats du site web';
$destination[3][3] = array();
$destination[3][3]['dst_id'] = '3';
$destination[3][3]['locale'] = 'fr_FR';
$destination[3][3]['value'] = 'Bienvenue %s';
$destination[4][4] = array();
$destination[4][4]['dst_id'] = '4';
$destination[4][4]['locale'] = 'fr_FR';
$destination[4][4]['value'] = 'Fonctionnent comme les vues, vous pouvez récupérer les propriétés, ' . 'use helpers et si vous voulez intégrer l\'enfant (vue) écrivez : $this->content.';
$destination[5][5] = array();
$destination[5][5]['dst_id'] = '5';
$destination[5][5]['locale'] = 'fr_FR';
$destination[5][5]['value'] = 'Fonctionnent comme les contrôleurs Zend Framework, vous pouvez récupérer' . ' la requête (Request), la réponse (Response) et utiliser les plugins de contrôleurs.';
$source = array();
$source[1] = 'Views';
$source[2] = 'Website statistics';
$source[3] = 'Welcome %s';
$source[4] = 'Work like views, you can get properties, use helpers, and if you want to integrate children ' . '(view) write: $this->content.';
$source[5] = 'Work like Zend Framework controllers, you can get the request, response and controller plugins.';
$this->dispatch('/admin/content/translation', 'POST', array('destination' => $destination, 'source' => $source));
$this->assertResponseStatusCode(302);
$this->assertModuleName('GcContent');
$this->assertControllerName('TranslationController');
$this->assertControllerClass('TranslationController');
$this->assertMatchedRouteName('content/translation');
}