Changeset 50449
- Timestamp:
- 02/27/2021 04:54:52 PM (4 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-ajax.php
r49696 r50449 117 117 118 118 public static function setUpBeforeClass() { 119 parent::setUpBeforeClass(); 120 119 121 remove_action( 'admin_init', '_maybe_update_core' ); 120 122 remove_action( 'admin_init', '_maybe_update_plugins' ); … … 127 129 } 128 130 } 129 130 parent::setUpBeforeClass();131 131 } 132 132 -
trunk/tests/phpunit/includes/testcase-block-supports.php
r49547 r50449 15 15 */ 16 16 private $registered_block_names = array(); 17 18 /**19 * Sets up each test method.20 */21 public function setUp() {22 parent::setUp();23 }24 17 25 18 /** -
trunk/tests/phpunit/tests/admin/includesScreen.php
r49184 r50449 157 157 158 158 function setUp() { 159 parent::setUp(); 159 160 set_current_screen( 'front' ); 160 parent::setUp();161 161 } 162 162 -
trunk/tests/phpunit/tests/adminbar.php
r49603 r50449 16 16 17 17 public static function setUpBeforeClass() { 18 parent::setUpBeforeClass(); 19 18 20 require_once ABSPATH . WPINC . '/class-wp-admin-bar.php'; 19 20 parent::setUpBeforeClass();21 21 } 22 22 -
trunk/tests/phpunit/tests/comment/getCommentExcerpt.php
r48937 r50449 2 2 3 3 class Tests_Get_Comment_Excerpt extends WP_UnitTestCase { 4 protected static $bacon_comment; 5 6 public static function setUpBeforeClass() { 7 parent::setUpBeforeClass(); 8 9 self::$bacon_comment = 'Bacon ipsum dolor amet porchetta capicola sirloin prosciutto brisket shankle jerky. Ham hock filet mignon boudin ground round, prosciutto alcatra spare ribs meatball turducken pork beef ribs ham beef. Bacon pastrami short loin, venison tri-tip ham short ribs doner swine. Tenderloin pig tongue pork jowl doner. Pork loin rump t-bone, beef strip steak flank drumstick tri-tip short loin capicola jowl. Cow filet mignon hamburger doner rump. Short loin jowl drumstick, tongue tail beef ribs pancetta flank brisket landjaeger chuck venison frankfurter turkey. 4 protected static $bacon_comment = 'Bacon ipsum dolor amet porchetta capicola sirloin prosciutto brisket shankle jerky. Ham hock filet mignon boudin ground round, prosciutto alcatra spare ribs meatball turducken pork beef ribs ham beef. Bacon pastrami short loin, venison tri-tip ham short ribs doner swine. Tenderloin pig tongue pork jowl doner. Pork loin rump t-bone, beef strip steak flank drumstick tri-tip short loin capicola jowl. Cow filet mignon hamburger doner rump. Short loin jowl drumstick, tongue tail beef ribs pancetta flank brisket landjaeger chuck venison frankfurter turkey. 10 5 11 6 Brisket shank rump, tongue beef ribs swine fatback turducken capicola meatball picanha chicken cupim meatloaf turkey. Bacon biltong shoulder tail frankfurter boudin cupim turkey drumstick. Porchetta pig shoulder, jerky flank pork tail meatball hamburger. Doner ham hock ribeye tail jerky swine. Leberkas ribeye pancetta, tenderloin capicola doner turducken chicken venison ground round boudin pork chop. Tail pork loin pig spare ribs, biltong ribeye brisket pork chop cupim. Short loin leberkas spare ribs jowl landjaeger tongue kevin flank bacon prosciutto. 12 7 13 8 Shankle pork chop prosciutto ribeye ham hock pastrami. T-bone shank brisket bacon pork chop. Cupim hamburger pork loin short loin. Boudin ball tip cupim ground round ham shoulder. Sausage rump cow tongue bresaola pork pancetta biltong tail chicken turkey hamburger. Kevin flank pork loin salami biltong. Alcatra landjaeger pastrami andouille kielbasa ham tenderloin drumstick sausage turducken tongue corned beef.'; 14 }15 9 16 10 public function test_get_comment_excerpt() { -
trunk/tests/phpunit/tests/comment/query.php
r49603 r50449 12 12 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 13 13 self::$post_id = $factory->post->create(); 14 }15 16 function setUp() {17 parent::setUp();18 14 } 19 15 -
trunk/tests/phpunit/tests/dbdelta.php
r48937 r50449 80 80 ); 81 81 82 // This has to be called after the `CREATE TABLE` above as the `_create_temporary_tables` filter 83 // causes it to create a temporary table, and a temporary table cannot use a FULLTEXT index. 82 84 parent::setUp(); 83 85 } -
trunk/tests/phpunit/tests/feed/wp-simplepie-file.php
r49803 r50449 18 18 class Tests_WP_SimplePie_File extends WP_UnitTestCase { 19 19 public static function setUpBeforeClass() { 20 parent::setUpBeforeClass(); 21 20 22 require_once ABSPATH . '/wp-includes/class-simplepie.php'; 21 23 require_once ABSPATH . '/wp-includes/class-wp-simplepie-file.php'; -
trunk/tests/phpunit/tests/image/editor.php
r49230 r50449 20 20 require_once DIR_TESTDATA . '/../includes/mock-image-editor.php'; 21 21 22 // This needs to come after the mock image editor class is loaded. 22 23 parent::setUp(); 23 24 } -
trunk/tests/phpunit/tests/image/editorGd.php
r49757 r50449 18 18 require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php'; 19 19 20 // This needs to come after the mock image editor class is loaded. 20 21 parent::setUp(); 21 22 } -
trunk/tests/phpunit/tests/image/editorImagick.php
r49757 r50449 19 19 require_once DIR_TESTROOT . '/includes/class-wp-test-stream.php'; 20 20 21 // This needs to come after the mock image editor class is loaded. 21 22 parent::setUp(); 22 23 } -
trunk/tests/phpunit/tests/image/resizeGd.php
r48937 r50449 22 22 require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php'; 23 23 24 // This needs to come after the mock image editor class is loaded. 24 25 parent::setUp(); 25 26 } -
trunk/tests/phpunit/tests/image/resizeImagick.php
r47198 r50449 22 22 require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php'; 23 23 24 // This needs to come after the mock image editor class is loaded. 24 25 parent::setUp(); 25 26 } -
trunk/tests/phpunit/tests/menu/walker-nav-menu.php
r49215 r50449 24 24 25 25 $this->_wp_nav_menu_max_depth = $_wp_nav_menu_max_depth; 26 parent::setUp();27 26 } 28 27 -
trunk/tests/phpunit/tests/menu/wpAjaxMenuQuickSearch.php
r47747 r50449 17 17 */ 18 18 function setUp() { 19 parent::setUp(); 20 19 21 global $current_screen; 20 22 $this->current_screen = $current_screen; 21 parent::setUp();22 23 } 23 24 -
trunk/tests/phpunit/tests/post/formats.php
r49354 r50449 5 5 */ 6 6 class Tests_Post_Formats extends WP_UnitTestCase { 7 function setUp() {8 parent::setUp();9 }10 11 7 function test_set_get_post_format_for_post() { 12 8 $post_id = self::factory()->post->create(); -
trunk/tests/phpunit/tests/post/getPages.php
r49327 r50449 6 6 7 7 class Tests_Post_GetPages extends WP_UnitTestCase { 8 function setUp() {9 parent::setUp();10 }11 12 8 /** 13 9 * @ticket 23167 -
trunk/tests/phpunit/tests/query/setupPostdata.php
r48937 r50449 11 11 12 12 protected $pages_global; 13 14 public function setUp() {15 parent::setUp();16 return;17 18 foreach ( $this->global_keys as $global_key ) {19 if ( isset( $GLOBALS[ $global_key ] ) ) {20 $this->global_data[ $global_key ] = $GLOBALS[ $global_key ];21 unset( $GLOBALS[ $global_key ] );22 } else {23 $this->global_data[ $global_key ] = null;24 }25 }26 }27 13 28 14 public function test_id() { -
trunk/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php
r49603 r50449 134 134 */ 135 135 public function setUp() { 136 parent::setUp(); 137 136 138 $this->register_test_block(); 137 139 $this->register_post_context_test_block(); 138 140 $this->register_non_dynamic_block(); 139 141 $this->register_dynamic_block_with_boolean_attributes(); 140 parent::setUp();141 142 } 142 143 -
trunk/tests/phpunit/tests/upload.php
r49184 r50449 9 9 10 10 function setUp() { 11 parent::setUp(); 11 12 $this->_reset_options(); 12 parent::setUp();13 13 } 14 14 -
trunk/tests/phpunit/tests/walker.php
r49184 r50449 10 10 11 11 function setUp() { 12 parent::setUp(); 12 13 13 14 $this->walker = new Walker_Test(); 14 15 parent::setUp();16 17 15 } 18 16
Note: See TracChangeset
for help on using the changeset viewer.