Skip to content

Commit b4cf66e

Browse files
committed
DB/DirectDatabaseQuery: move syntax error test to its own file
1 parent 584ef10 commit b4cf66e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

WordPress/Tests/DB/DirectDatabaseQueryUnitTest.1.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,3 @@ function method_names_are_caseinsensitive() {
332332
global $wpdb;
333333
$autoload = $wpdb->Get_Var( $wpdb->Prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s", $option_name ) ); // Warning x 2.
334334
}
335-
336-
// Live coding/parse error test.
337-
// This must be the last test in the file.
338-
$wpdb->get_col( '
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
/*
4+
* Intentional parse error (unclosed string).
5+
* This should be the only test in this file.
6+
*/
7+
8+
$wpdb->get_col( '

0 commit comments

Comments
 (0)