diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php index f9aea91..8f65663 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php @@ -65,4 +65,18 @@ function testPreviewUI() { $this->assertEqual(count($elements), 0); } + /** + * Tests the actual preview response. + */ + public function testPreviewController() { + $result = $this->drupalGetAJAX('admin/structure/views/view/test_preview/preview/default'); + + $result_commands = array(); + // Build a list of the result commands keyed by the js commando. + foreach ($result as $command) { + $result_commands[$command['command']] = $command; + } + $this->assertTrue(isset($result_commands['insert'])); + } + }