Changeset 51462 for trunk/tests/phpunit/tests/comment/commentForm.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/commentForm.php
r46586 r51462 36 36 37 37 $button = '<input name="custom-foo-name" type="submit" id="custom-foo-id" class="custom-foo-class" value="custom-foo-label" />'; 38 $this->assert Contains( $button, $form );38 $this->assertStringContainsString( $button, $form ); 39 39 } 40 40 … … 114 114 $form_with_aria = get_echo( 'comment_form', array( array(), $p ) ); 115 115 116 $this->assert Contains( 'aria-describedby="email-notes"', $form_with_aria );116 $this->assertStringContainsString( 'aria-describedby="email-notes"', $form_with_aria ); 117 117 118 118 $args = array( … … 122 122 $form_without_aria = get_echo( 'comment_form', array( $args, $p ) ); 123 123 124 $this->assert NotContains( 'aria-describedby="email-notes"', $form_without_aria );124 $this->assertStringNotContainsString( 'aria-describedby="email-notes"', $form_without_aria ); 125 125 } 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.