Changeset 51462 for trunk/tests/phpunit/tests/post/output.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/output.php
r48937 r51462 306 306 foreach ( array( true, false ) as $strip_teaser ) { 307 307 $actual = get_echo( 'the_content', array( null, $strip_teaser ) ); 308 $this->assert Contains( 'Teaser part', $actual );309 $this->assert Contains( 'Read More</a>', $actual );310 $this->assert NotContains( '<!--more-->', $actual );311 $this->assert NotContains( 'wp:more', $actual );312 $this->assert NotContains( 'wp:paragraph', $actual );308 $this->assertStringContainsString( 'Teaser part', $actual ); 309 $this->assertStringContainsString( 'Read More</a>', $actual ); 310 $this->assertStringNotContainsString( '<!--more-->', $actual ); 311 $this->assertStringNotContainsString( 'wp:more', $actual ); 312 $this->assertStringNotContainsString( 'wp:paragraph', $actual ); 313 313 } 314 314 } … … 347 347 foreach ( array( true, false ) as $strip_teaser ) { 348 348 $actual = get_echo( 'the_content', array( null, $strip_teaser ) ); 349 $this->assert Contains( 'Teaser part', $actual );350 $this->assert Contains( '(more…)</span></a>', $actual );351 $this->assert NotContains( '<!--more-->', $actual );352 $this->assert NotContains( '<!--noteaser-->', $actual ); // We placed the noteaser tag below the more tag.353 $this->assert NotContains( 'wp:more', $actual );354 $this->assert NotContains( 'wp:paragraph', $actual );349 $this->assertStringContainsString( 'Teaser part', $actual ); 350 $this->assertStringContainsString( '(more…)</span></a>', $actual ); 351 $this->assertStringNotContainsString( '<!--more-->', $actual ); 352 $this->assertStringNotContainsString( '<!--noteaser-->', $actual ); // We placed the noteaser tag below the more tag. 353 $this->assertStringNotContainsString( 'wp:more', $actual ); 354 $this->assertStringNotContainsString( 'wp:paragraph', $actual ); 355 355 } 356 356 }
Note: See TracChangeset
for help on using the changeset viewer.