Changeset 43571 for trunk/tests/phpunit/tests/dbdelta.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dbdelta.php
r42343 r43571 88 88 89 89 $this->assertEquals( 90 "{$wpdb->prefix}dbdelta_create_test", $wpdb->get_var( 90 "{$wpdb->prefix}dbdelta_create_test", 91 $wpdb->get_var( 91 92 $wpdb->prepare( 92 'SHOW TABLES LIKE %s', $wpdb->esc_like( "{$wpdb->prefix}dbdelta_create_test" ) 93 'SHOW TABLES LIKE %s', 94 $wpdb->esc_like( "{$wpdb->prefix}dbdelta_create_test" ) 93 95 ) 94 96 ) … … 144 146 "{$wpdb->prefix}dbdelta_test.id" 145 147 => "Changed type of {$wpdb->prefix}dbdelta_test.id from bigint(20) to int(11)", 146 ), $updates 148 ), 149 $updates 147 150 ); 148 151 } … … 172 175 "{$wpdb->prefix}dbdelta_test.extra_col" 173 176 => "Added column {$wpdb->prefix}dbdelta_test.extra_col", 174 ), $updates 177 ), 178 $updates 175 179 ); 176 180 … … 223 227 KEY compound_key (id,column_1($this->max_index_length)) 224 228 ) 225 ", false // Don't execute. 229 ", 230 false // Don't execute. 226 231 ); 227 232 … … 230 235 "{$wpdb->prefix}dbdelta_test.extra_col" 231 236 => "Added column {$wpdb->prefix}dbdelta_test.extra_col", 232 ), $updates 237 ), 238 $updates 233 239 ); 234 240 … … 247 253 248 254 $this->assertEquals( 249 array(), $insert 255 array(), 256 $insert 250 257 ); 251 258 … … 272 279 FULLTEXT KEY fulltext_key (column_1) 273 280 ) 274 ", false 281 ", 282 false 275 283 ); 276 284 … … 329 337 330 338 $this->assertCount( 331 1, wp_list_filter( 332 $table_indices, array( 339 1, 340 wp_list_filter( 341 $table_indices, 342 array( 333 343 'Key_name' => 'PRIMARY', 334 344 'Column_name' => $column, 335 ), 'AND' 345 ), 346 'AND' 336 347 ) 337 348 ); … … 408 419 FULLTEXT KEY fulltext_key (column_1) 409 420 ) ENGINE=MyISAM 410 ", false 421 ", 422 false 411 423 ); 412 424 … … 432 444 FULLTEXT KEY fulltext_key (column_1) 433 445 ) ENGINE=MyISAM 434 ", false 446 ", 447 false 435 448 ); 436 449 … … 456 469 FULLTEXT KEY fulltext_key (column_1) 457 470 ) ENGINE=MyISAM 458 ", false 471 ", 472 false 459 473 ); 460 474 … … 463 477 "{$wpdb->prefix}dbdelta_test.column_2" 464 478 => "Changed type of {$wpdb->prefix}dbdelta_test.column_2 from text to bigtext", 465 ), $result 479 ), 480 $result 466 481 ); 467 482 } … … 485 500 FULLTEXT KEY fulltext_key (column_1) 486 501 ) ENGINE=MyISAM 487 ", false 502 ", 503 false 488 504 ); 489 505 … … 492 508 "{$wpdb->prefix}dbdelta_test.column_3" 493 509 => "Changed type of {$wpdb->prefix}dbdelta_test.column_3 from blob to mediumblob", 494 ), $result 510 ), 511 $result 495 512 ); 496 513 } … … 564 581 "{$wpdb->prefix}spatial_index_test.spatial_value2" => "Added column {$wpdb->prefix}spatial_index_test.spatial_value2", 565 582 "Added index {$wpdb->prefix}spatial_index_test SPATIAL KEY `spatial_key2` (`spatial_value2`)", 566 ), $updates 583 ), 584 $updates 567 585 ); 568 586 … … 853 871 FULLTEXT KEY FULLtext_kEY (column_1) 854 872 ) ENGINE=MyISAM 855 ", false 873 ", 874 false 856 875 ); 857 876 … … 877 896 FULLTEXT KEY fulltext_key (column_1) 878 897 ) ENGINE=MyISAM 879 ", false 898 ", 899 false 880 900 ); 881 901 … … 908 928 array( 909 929 "Added index {$wpdb->prefix}dbdelta_test KEY `changing_key_length` (`column_1`(20))", 910 ), $updates 930 ), 931 $updates 911 932 ); 912 933
Note: See TracChangeset
for help on using the changeset viewer.