'uri' => 'internal:/'
],
],
'bundle' => 'menu_name',
]);
$menu_link_2->
save();
$this->
verifyPageCache($url, 'MISS'
);
// Verify a cache hit.
$this->
verifyPageCache($url, 'HIT'
);
// Verify that after resetting the first menu link, there is a cache miss.
$this->
assertTrue($menu_link->
isResettable(), 'First link can be reset'
);
$menu_link =
$menu_link_manager->
resetLink($menu_link->
getPluginId());
$this->
verifyPageCache($url, 'MISS'
);
// Verify a cache hit.
$this->
verifyPageCache($url, 'HIT',
$expected_tags);
// Verify that after deleting the menu, there is a cache miss.
$menu->
delete();
$this->
verifyPageCache($url, 'MISS'
);
// Verify a cache hit.