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:
Pantheon Automation 2016-10-06 15:16:20 -07:00 committed by Greg Anderson
parent 2f563ab520
commit f1c8716f57
1732 changed files with 52334 additions and 11780 deletions

View file

@ -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) {

View file

@ -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();
}
}

View file

@ -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();
}