diff --git a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php index 19d7f32..6fad815 100644 --- a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php +++ b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php @@ -263,11 +263,11 @@ function testCacheClearByCacheTag() { // Assert that a cache tag in the toolbar cache under the key "user" exists // for adminUser against the language "fr". $cache = $toolbarCache->get('toolbar_' . $admin_user_2_id . ':' . 'fr'); - $this->asserMtEqual(in_array('user:' . $admin_user_2_id, $cache->tags), 'A cache tag in the toolbar cache under the key "user" exists for admin_user_2 against the language "fr".'); + $this->assertEqual(in_array('user:' . $admin_user_2_id, $cache->tags), 'A cache tag in the toolbar cache under the key "user" exists for admin_user_2 against the language "fr".'); - // Log in adminUser and clear the caches for this user using a tag. + // Log in the admin user and clear the caches for this user using a tag. $this->drupalLogin($this->adminUser); - Cache::deleteTags(array('user:' . $admin_user_id)); + Cache::invalidateTags(array('user:' . $admin_user_id)); // Assert that no toolbar cache exists for adminUser against the // language "en".