Changeset 46612 for trunk/tests/phpunit/tests/formatting/Autop.php
- Timestamp:
- 10/29/2019 02:26:41 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/Autop.php
r46586 r46612 503 503 line 5</p>'; 504 504 505 $this->assertEquals ( $expected, trim( wpautop( $content ) ) );505 $this->assertEqualsIgnoreEOL( $expected, trim( wpautop( $content ) ) ); 506 506 } 507 507 … … 522 522 <p>line 2</p>'; 523 523 524 $this->assertEquals ( $expected, trim( wpautop( $content ) ) );524 $this->assertEqualsIgnoreEOL( $expected, trim( wpautop( $content ) ) ); 525 525 } 526 526 … … 544 544 * @ticket 39307 545 545 */ 546 function test_that_wpautop_do ses_not_add_extra_closing_p_in_figure() {546 function test_that_wpautop_does_not_add_extra_closing_p_in_figure() { 547 547 $content1 = '<figure><img src="example.jpg" /><figcaption>Caption</figcaption></figure>'; 548 548 $expected1 = $content1; … … 557 557 558 558 $this->assertEquals( $expected1, trim( wpautop( $content1 ) ) ); 559 $this->assertEquals ( $expected2, trim( wpautop( $content2 ) ) );559 $this->assertEqualsIgnoreEOL( $expected2, trim( wpautop( $content2 ) ) ); 560 560 } 561 561 … … 585 585 $expected = '<p>' . $content . '</p>'; 586 586 587 $this->assertEquals ( $expected, trim( wpautop( $content ) ) );587 $this->assertEqualsIgnoreEOL( $expected, trim( wpautop( $content ) ) ); 588 588 } 589 589 … … 601 601 $expected = '<p>' . $content . '</p>'; 602 602 603 $this->assertEquals ( $expected, trim( wpautop( $content ) ) );603 $this->assertEqualsIgnoreEOL( $expected, trim( wpautop( $content ) ) ); 604 604 } 605 605 }
Note: See TracChangeset
for help on using the changeset viewer.