Changeset 45607 for trunk/tests/phpunit/tests/feed/atom.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/feed/atom.php
r43571 r45607 72 72 global $post; 73 73 try { 74 // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged 74 75 @require( ABSPATH . 'wp-includes/feed-atom.php' ); 75 76 $out = ob_get_clean(); … … 163 164 $link_alts = xml_find( $entries[ $key ]['child'], 'link' ); 164 165 foreach ( $link_alts as $link_alt ) { 165 if ( 'alternate' == $link_alt['attributes']['rel'] ) {166 if ( 'alternate' === $link_alt['attributes']['rel'] ) { 166 167 $this->assertEquals( get_permalink( $post ), $link_alt['attributes']['href'] ); 167 168 } … … 186 187 $categories = xml_find( $entries[ $key ]['child'], 'category' ); 187 188 foreach ( $categories as $category ) { 188 $this->assertTrue( in_array( $category['attributes']['term'], $terms ) );189 $this->assertTrue( in_array( $category['attributes']['term'], $terms, true ) ); 189 190 } 190 191 unset( $terms ); … … 199 200 $link_replies = xml_find( $entries[ $key ]['child'], 'link' ); 200 201 foreach ( $link_replies as $link_reply ) { 201 if ( 'replies' == $link_reply['attributes']['rel'] && 'application/atom+xml'== $link_reply['attributes']['type'] ) {202 if ( 'replies' === $link_reply['attributes']['rel'] && 'application/atom+xml' === $link_reply['attributes']['type'] ) { 202 203 $this->assertEquals( get_post_comments_feed_link( $post->ID, 'atom' ), $link_reply['attributes']['href'] ); 203 204 }
Note: See TracChangeset
for help on using the changeset viewer.