Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Drupal\shortcut\Tests;
|
||||
|
||||
use Drupal\Core\Cache\CacheBackendInterface;
|
||||
use Drupal\shortcut\Entity\Shortcut;
|
||||
use Drupal\system\Tests\Entity\EntityCacheTagsTestBase;
|
||||
use Drupal\user\Entity\Role;
|
||||
|
@ -55,7 +56,7 @@ class ShortcutCacheTagsTest extends EntityCacheTagsTestBase {
|
|||
public function testEntityCreation() {
|
||||
// Create a cache entry that is tagged with a shortcut set cache tag.
|
||||
$cache_tags = ['config:shortcut.set.default'];
|
||||
\Drupal::cache('render')->set('foo', 'bar', \Drupal\Core\Cache\CacheBackendInterface::CACHE_PERMANENT, $cache_tags);
|
||||
\Drupal::cache('render')->set('foo', 'bar', CacheBackendInterface::CACHE_PERMANENT, $cache_tags);
|
||||
|
||||
// Verify a cache hit.
|
||||
$this->verifyRenderCache('foo', $cache_tags);
|
||||
|
|
|
@ -91,7 +91,7 @@ class ShortcutLinksTest extends ShortcutTestBase {
|
|||
$this->assertEqual($entity->link->options, $loaded->link->options);
|
||||
}
|
||||
|
||||
// Login as non admin user, to check that access is checked when creating
|
||||
// Log in as non admin user, to check that access is checked when creating
|
||||
// shortcuts.
|
||||
$this->drupalLogin($this->shortcutUser);
|
||||
$title = $this->randomMachineName();
|
||||
|
|
|
@ -111,7 +111,7 @@ class ShortcutTranslationUITest extends ContentTranslationUITestBase {
|
|||
|
||||
$this->assertFalse(
|
||||
$entity instanceof EntityChangedInterface,
|
||||
format_string('%entity is not implementing EntityChangedInterface.' , array('%entity' => $this->entityTypeId))
|
||||
format_string('%entity is not implementing EntityChangedInterface.', array('%entity' => $this->entityTypeId))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue