Changeset 51565 for trunk/tests/phpunit/tests/customize/widgets.php
- Timestamp:
- 08/06/2021 09:52:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/widgets.php
r51462 r51565 611 611 612 612 $this->assertSame( 'widget_form', $params['type'] ); 613 $this->assert RegExp( '#^<li[^>]+>\s*</li>$#', $params['content'] );614 $this->assert RegExp( '#^<div[^>]*class=\'widget\'[^>]*#s', $params['widget_control'] );613 $this->assertMatchesRegularExpression( '#^<li[^>]+>\s*</li>$#', $params['content'] ); 614 $this->assertMatchesRegularExpression( '#^<div[^>]*class=\'widget\'[^>]*#s', $params['widget_control'] ); 615 615 $this->assertStringContainsString( '<div class="widget-content"></div>', $params['widget_control'] ); 616 616 $this->assertStringNotContainsString( '<input class="widefat"', $params['widget_control'] );
Note: See TracChangeset
for help on using the changeset viewer.