Changeset 48937 for trunk/tests/phpunit/tests/formatting/WPRelUgc.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPRelUgc.php
r46586 r48937 12 12 $content = '<p>This is some cool <a href="/">Code</a></p>'; 13 13 $expected = '<p>This is some cool <a href=\"/\" rel=\"nofollow ugc\">Code</a></p>'; 14 $this->assert Equals( $expected, wp_rel_ugc( $content ) );14 $this->assertSame( $expected, wp_rel_ugc( $content ) ); 15 15 } 16 16 … … 21 21 $content = '<p>This is some cool <a href="/" rel="weird">Code</a></p>'; 22 22 $expected = '<p>This is some cool <a href=\"/\" rel=\"weird nofollow ugc\">Code</a></p>'; 23 $this->assert Equals( $expected, wp_rel_ugc( $content ) );23 $this->assertSame( $expected, wp_rel_ugc( $content ) ); 24 24 } 25 25 … … 29 29 */ 30 30 public function test_wp_rel_ugc( $input, $output ) { 31 return $this->assert Equals( wp_slash( $output ), wp_rel_ugc( $input ) );31 return $this->assertSame( wp_slash( $output ), wp_rel_ugc( $input ) ); 32 32 } 33 33 … … 79 79 $content = '<p>This is some cool <a href="demo.com" download rel="hola">Code</a></p>'; 80 80 $expected = '<p>This is some cool <a href=\"demo.com\" download rel=\"hola nofollow ugc\">Code</a></p>'; 81 $this->assert Equals( $expected, wp_rel_ugc( $content ) );81 $this->assertSame( $expected, wp_rel_ugc( $content ) ); 82 82 } 83 83 }
Note: See TracChangeset
for help on using the changeset viewer.