Changeset 51462 for trunk/tests/phpunit/tests/customize/section.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/section.php
r51331 r51462 203 203 $section->print_template(); 204 204 $content = ob_get_clean(); 205 $this->assert Contains( '<script type="text/html" id="tmpl-customize-section-default">', $content );206 $this->assert Contains( 'accordion-section-title', $content );207 $this->assert Contains( 'accordion-section-content', $content );205 $this->assertStringContainsString( '<script type="text/html" id="tmpl-customize-section-default">', $content ); 206 $this->assertStringContainsString( 'accordion-section-title', $content ); 207 $this->assertStringContainsString( 'accordion-section-content', $content ); 208 208 } 209 209 … … 218 218 $section->print_template(); 219 219 $content = ob_get_clean(); 220 $this->assert Contains( '<script type="text/html" id="tmpl-customize-section-titleless">', $content );221 $this->assert NotContains( 'accordion-section-title', $content );222 $this->assert Contains( 'accordion-section-content', $content );220 $this->assertStringContainsString( '<script type="text/html" id="tmpl-customize-section-titleless">', $content ); 221 $this->assertStringNotContainsString( 'accordion-section-title', $content ); 222 $this->assertStringContainsString( 'accordion-section-content', $content ); 223 223 } 224 224 }
Note: See TracChangeset
for help on using the changeset viewer.