diff --git a/core/modules/views/src/Tests/ViewExecutableTest.php b/core/modules/views/src/Tests/ViewExecutableTest.php index 5e6c28d..160e7ca 100644 --- a/core/modules/views/src/Tests/ViewExecutableTest.php +++ b/core/modules/views/src/Tests/ViewExecutableTest.php @@ -446,6 +446,11 @@ public function testSerialization() { $view->setCurrentPage(2); $serialized = serialize($view); + + // Test the view storage object is not present in the actual serialized + // string. + $this->assertIdentical(strpos($serialized, '"Drupal\views\Entity\View"'), FALSE, 'The Drupal\views\Entity\View class was not found in the serialized string.'); + /** @var \Drupal\views\ViewExecutable $unserialized */ $unserialized = unserialize($serialized);