Changeset 51859
- Timestamp:
- 09/24/2021 12:29:46 AM (3 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/avoidBlogPagePermalinkCollision.php
r51858 r51859 7 7 * 8 8 * @group multisite 9 * @group only9 * @group post 10 10 */ 11 class Tests_Multisite_MS_Permalink_Collision extends WP_UnitTestCase { 12 protected $suppress = false; 11 class Tests_Multisite_AvoidBlogPagePermalinkCollision extends WP_UnitTestCase { 13 12 protected static $site_id; 14 13 protected static $root_page; … … 54 53 } 55 54 56 public function set_up() {57 global $wpdb;58 parent::set_up();59 $this->suppress = $wpdb->suppress_errors();60 }61 62 public function tear_down() {63 global $wpdb;64 $wpdb->suppress_errors( $this->suppress );65 parent::tear_down();66 }67 68 55 public function test_avoid_blog_page_permalink_collision_renames_post_name() { 69 56 $this->assertNotSame( self::$post_and_blog_path, self::$root_page->post_name ); … … 71 58 72 59 /** 73 * Ensure `avoid_blog_page_permalink_collision()` doesn't rename child pages post_name.60 * Ensure `avoid_blog_page_permalink_collision()` doesn't rename child pages' post_name. 74 61 * 75 62 * @ticket 51147
Note: See TracChangeset
for help on using the changeset viewer.