Changeset 49193 for trunk/tests/phpunit/tests/post/postClass.php
- Timestamp:
- 10/18/2020 05:25:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/postClass.php
r48060 r49193 14 14 15 15 public function test_post_class() { 16 $expected = 'class="' . join( ' ', get_post_class( '', $this->post_id ) ) . '"';16 $expected = 'class="' . implode( ' ', get_post_class( '', $this->post_id ) ) . '"'; 17 17 $this->expectOutputString( $expected ); 18 18 post_class( '', $this->post_id ); … … 22 22 $classes = get_post_class( '', $this->post_id ); 23 23 $escaped_again = array_map( 'esc_attr', $classes ); 24 $escaped_another_time = 'class="' . esc_attr( join( ' ', $escaped_again ) ) . '"';24 $escaped_another_time = 'class="' . esc_attr( implode( ' ', $escaped_again ) ) . '"'; 25 25 26 26 $this->expectOutputString( $escaped_another_time );
Note: See TracChangeset
for help on using the changeset viewer.