X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fviews_ui%2Fsrc%2FTests%2FPreviewTest.php;h=c8bd7bd14c2cf6a658c8f248b77051de97f76991;hb=9424afc6c1f518c301bf87a23c047d1873435d05;hp=c723cb3b7689a0965f510d0ce574b3ef0bfc8d27;hpb=bfbba508964731508b9bd6d5835c2edc858db95b;p=yaffs-website diff --git a/web/core/modules/views_ui/src/Tests/PreviewTest.php b/web/core/modules/views_ui/src/Tests/PreviewTest.php index c723cb3b7..c8bd7bd14 100644 --- a/web/core/modules/views_ui/src/Tests/PreviewTest.php +++ b/web/core/modules/views_ui/src/Tests/PreviewTest.php @@ -105,7 +105,13 @@ class PreviewTest extends UITestBase { $this->assertText(t('Query execute time')); $this->assertText(t('View render time')); $this->assertRaw('Query'); - $this->assertText("SELECT views_test_data.name AS views_test_data_name\nFROM \n{views_test_data} views_test_data\nWHERE (views_test_data.id = '100' )"); + $query_string = <<assertEscaped($query_string); // Test that the statistics and query are rendered above the preview. $this->assertTrue(strpos($this->getRawContent(), 'views-query-info') < strpos($this->getRawContent(), 'view-test-preview'), 'Statistics shown above the preview.');