Révision 8c72e82a
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/i18n/i18n_block/i18n_block.test | ||
---|---|---|
72 | 72 |
|
73 | 73 |
$this->clickLink(t('translate')); |
74 | 74 |
|
75 |
// Title is a textarea, body is a text_format. |
|
75 | 76 |
$this->assertFieldByName('strings[blocks:block:' . $box2['delta'] . ':title]', $translations['title']['es']); |
76 |
$this->assertFieldByName('strings[blocks:block:' . $box2['delta'] . ':body]', $translations['body']['es']); |
|
77 |
$this->assertFieldByName('strings[blocks:block:' . $box2['delta'] . ':body][value]', $translations['body']['es']);
|
|
77 | 78 |
|
78 | 79 |
// Update the translation. |
79 | 80 |
$translations['title']['es'] = $this->randomName(10); |
80 | 81 |
$translations['body']['es'] = $this->randomName(20); |
81 | 82 |
$edit = array( |
82 | 83 |
'strings[blocks:block:' . $box2['delta'] . ':title]' => $translations['title']['es'], |
83 |
'strings[blocks:block:' . $box2['delta'] . ':body]' => $translations['body']['es'], |
|
84 |
'strings[blocks:block:' . $box2['delta'] . ':body][value]' => $translations['body']['es'],
|
|
84 | 85 |
); |
85 | 86 |
$this->drupalPost(NULL, $edit, t('Save translation')); |
86 | 87 |
$this->i18nAssertTranslations($translations['title'], '', 'Updated block title translation displayed.'); |
Formats disponibles : Unified diff
Weekly update of contrib modules