Changeset 51565 for trunk/tests/phpunit/tests/comment/commentForm.php
- Timestamp:
- 08/06/2021 09:52:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/commentForm.php
r51462 r51565 19 19 $button = '<input name="foo-name" type="submit" id="foo-id" class="foo-class" value="foo-label" />'; 20 20 $hidden = get_comment_id_fields( $p ); 21 $this->assert RegExp( '|<p class="form\-submit">\s*' . $button . '\s*' . $hidden . '\s*|', $form );21 $this->assertMatchesRegularExpression( '|<p class="form\-submit">\s*' . $button . '\s*' . $hidden . '\s*|', $form ); 22 22 } 23 23 … … 54 54 $button = '<input name="foo-name" type="submit" id="foo-id" class="foo-class" value="foo-label" />'; 55 55 $hidden = get_comment_id_fields( $p ); 56 $this->assert RegExp( '|<p class="my\-custom\-submit\-field">\s*' . $button . '\s*' . $hidden . '\s*|', $form );56 $this->assertMatchesRegularExpression( '|<p class="my\-custom\-submit\-field">\s*' . $button . '\s*' . $hidden . '\s*|', $form ); 57 57 } 58 58 … … 76 76 $button = '<input name="foo-name" type="submit" id="foo-id" class="foo-class" value="foo-label" />'; 77 77 $hidden = get_comment_id_fields( $p ); 78 $this->assert RegExp( '|<p class="form\-submit">\s*' . $button . '\s*' . $hidden . '\s*|', $form );78 $this->assertMatchesRegularExpression( '|<p class="form\-submit">\s*' . $button . '\s*' . $hidden . '\s*|', $form ); 79 79 } 80 80 … … 103 103 remove_filter( 'option_show_comments_cookies_opt_in', '__return_true' ); 104 104 105 $this->assert RegExp( '|<p class="comment\-form\-cookies\-consent">.*?</p>|', $form );105 $this->assertMatchesRegularExpression( '|<p class="comment\-form\-cookies\-consent">.*?</p>|', $form ); 106 106 } 107 107
Note: See TracChangeset
for help on using the changeset viewer.