Changeset 47200
- Timestamp:
- 02/06/2020 09:40:05 PM (5 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/deprecated.php
r47198 r47200 155 155 156 156 // Call wp_save_image_file(). 157 include_once ABSPATH . 'wp-admin/includes/image-edit.php';157 require_once ABSPATH . 'wp-admin/includes/image-edit.php'; 158 158 $file = wp_tempnam(); 159 159 $img = imagecreatefromjpeg( DIR_TESTDATA . '/images/canola.jpg' ); … … 178 178 179 179 // Call wp_save_image_file(). 180 include_once ABSPATH . 'wp-admin/includes/image-edit.php';180 require_once ABSPATH . 'wp-admin/includes/image-edit.php'; 181 181 $file = wp_tempnam(); 182 182 $img = wp_get_image_editor( DIR_TESTDATA . '/images/canola.jpg' ); -
trunk/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php
r45607 r47200 91 91 switch_theme( 'internationalized-theme' ); 92 92 93 include_once get_stylesheet_directory() . '/functions.php';93 require_once get_stylesheet_directory() . '/functions.php'; 94 94 95 95 $is_textdomain_loaded_before = is_textdomain_loaded( 'internationalized-theme' ); -
trunk/tests/phpunit/tests/menu/wpAjaxMenuQuickSearch.php
r46586 r47200 37 37 */ 38 38 public function test_search_returns_results_for_pages() { 39 include_once ABSPATH . 'wp-admin/includes/nav-menu.php';39 require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; 40 40 41 41 self::factory()->post->create_many( -
trunk/tests/phpunit/tests/user/query.php
r47122 r47200 1662 1662 $ids = $q->get_results(); 1663 1663 1664 / * must include user that has same string in display_name */1664 // Must include user that has the same string in display_name. 1665 1665 $this->assertEquals( array( $new_user1 ), $ids ); 1666 1666 } … … 1690 1690 $ids = $q->get_results(); 1691 1691 1692 / * must not include user that has same string in other fields */1692 // Must not include user that has the same string in other fields. 1693 1693 $this->assertEquals( array(), $ids ); 1694 1694 }
Note: See TracChangeset
for help on using the changeset viewer.