def METHOD_NAME(self):
    User = get_user_model()
    user = User.objects.get(email="bob@example.com")
    with self.assertWarnsMessage(
        RemovedInWagtail60Warning,
        "get_explorable_root_page() is deprecated. "
        "Use wagtail.permission_policies.pages.PagePermissionPolicy."
        "explorable_root_instance() instead.",
    ):
        # Replace with PagePermissionPolicy().explorable_root_instance(user)
        self.assertEqual(get_explorable_root_page(user).id, 6)