Changeset 51462 for trunk/tests/phpunit/tests/customize/panel.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/panel.php
r51331 r51462 190 190 $panel->print_template(); 191 191 $content = ob_get_clean(); 192 $this->assert Contains( '<script type="text/html" id="tmpl-customize-panel-default-content">', $content );193 $this->assert Contains( 'accordion-section-title', $content );194 $this->assert Contains( 'control-panel-content', $content );195 $this->assert Contains( '<script type="text/html" id="tmpl-customize-panel-default">', $content );196 $this->assert Contains( 'customize-panel-description', $content );197 $this->assert Contains( 'preview-notice', $content );192 $this->assertStringContainsString( '<script type="text/html" id="tmpl-customize-panel-default-content">', $content ); 193 $this->assertStringContainsString( 'accordion-section-title', $content ); 194 $this->assertStringContainsString( 'control-panel-content', $content ); 195 $this->assertStringContainsString( '<script type="text/html" id="tmpl-customize-panel-default">', $content ); 196 $this->assertStringContainsString( 'customize-panel-description', $content ); 197 $this->assertStringContainsString( 'preview-notice', $content ); 198 198 } 199 199 … … 208 208 $panel->print_template(); 209 209 $content = ob_get_clean(); 210 $this->assert Contains( '<script type="text/html" id="tmpl-customize-panel-titleless-content">', $content );211 $this->assert NotContains( 'accordion-section-title', $content );212 213 $this->assert Contains( '<script type="text/html" id="tmpl-customize-panel-titleless">', $content );214 $this->assert NotContains( 'preview-notice', $content );210 $this->assertStringContainsString( '<script type="text/html" id="tmpl-customize-panel-titleless-content">', $content ); 211 $this->assertStringNotContainsString( 'accordion-section-title', $content ); 212 213 $this->assertStringContainsString( '<script type="text/html" id="tmpl-customize-panel-titleless">', $content ); 214 $this->assertStringNotContainsString( 'preview-notice', $content ); 215 215 } 216 216 }
Note: See TracChangeset
for help on using the changeset viewer.