Changeset 51857
- Timestamp:
- 09/23/2021 09:29:07 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/msPermalinkCollision.php
r51856 r51857 44 44 } 45 45 46 public function setUp() {47 global $wpdb;48 parent::setUp();49 $this->suppress = $wpdb->suppress_errors();50 }51 52 public function tearDown() {53 global $wpdb;54 $wpdb->suppress_errors( $this->suppress );55 parent::tearDown();56 }57 58 46 /** 59 47 * Delete blog and pages we created. … … 66 54 } 67 55 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 68 public function test_avoid_blog_page_permalink_collision_renames_post_name() { 69 $this->assertNot Equals( self::$post_and_blog_path, self::$root_page->post_name );69 $this->assertNotSame( self::$post_and_blog_path, self::$root_page->post_name ); 70 70 } 71 71 … … 76 76 */ 77 77 public function test_avoid_blog_page_permalink_collision_doesnt_rename_child_pages() { 78 $this->assert Equals( self::$post_and_blog_path, self::$child_page->post_name );78 $this->assertSame( self::$post_and_blog_path, self::$child_page->post_name ); 79 79 } 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.