Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
@ -434,7 +434,7 @@ class LocaleConfigManager {
|
|||
* @param string $context
|
||||
* The string context.
|
||||
*
|
||||
* @return \Drupal\locale\TranslationString|FALSE
|
||||
* @return \Drupal\locale\TranslationString|false
|
||||
* The translation object if the string was not empty or FALSE otherwise.
|
||||
*/
|
||||
public function getStringTranslation($name, $langcode, $source, $context) {
|
||||
|
|
|
@ -175,9 +175,9 @@ class StringDatabaseStorage implements StringStorageInterface {
|
|||
if ($string->getId() && $string->getVersion() != $version) {
|
||||
$string->setVersion($version);
|
||||
$this->connection->update('locales_source', $this->options)
|
||||
->condition('lid', $string->getId())
|
||||
->fields(array('version' => $version))
|
||||
->execute();
|
||||
->condition('lid', $string->getId())
|
||||
->fields(array('version' => $version))
|
||||
->execute();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,11 @@ class LocaleContentTest extends WebTestBase {
|
|||
'langcode[0][value]' => 'en',
|
||||
);
|
||||
$this->drupalPostForm($path, $edit, t('Save'));
|
||||
$this->assertRaw(t('%title has been updated.', array('%title' => $node_title)));
|
||||
$this->assertText(t('@title has been updated.', array('@title' => $node_title)));
|
||||
|
||||
// Verify that the creation message contains a link to a node.
|
||||
$view_link = $this->xpath('//div[@class="messages"]//a[contains(@href, :href)]', array(':href' => 'node/' . $node->id()));
|
||||
$this->assert(isset($view_link), 'The message area contains the link to the edited node');
|
||||
|
||||
$this->drupalLogout();
|
||||
}
|
||||
|
|
Reference in a new issue