- Timestamp:
- 07/24/2018 12:42:33 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/tests/phpunit/tests/comment/commentForm.php
r35242 r43524 81 81 return $defaults; 82 82 } 83 84 /** 85 * @ticket 44126 86 */ 87 public function test_fields_should_include_cookies_consent() { 88 $p = self::factory()->post->create(); 89 90 add_filter( 'option_show_comments_cookies_opt_in', '__return_true' ); 91 92 $args = array( 93 'fields' => array( 94 'author' => 'Hello World!', 95 ), 96 ); 97 $form = get_echo( 'comment_form', array( $args, $p ) ); 98 99 remove_filter( 'option_show_comments_cookies_opt_in', '__return_true' ); 100 101 $this->assertRegExp( '|<p class="comment\-form\-cookies\-consent">.*?</p>|', $form ); 102 } 83 103 }
Note: See TracChangeset
for help on using the changeset viewer.