- Timestamp:
- 10/08/2025 10:49:22 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r60908 r60916 1888 1888 $this->assertArrayHasKey( 'self', $links ); 1889 1889 $this->assertArrayHasKey( 'author', $links ); 1890 $this->assertArrayHasKey( ' post', $links );1890 $this->assertArrayHasKey( 'https://api.w.org/attached-to', $links ); 1891 1891 1892 1892 $this->assertCount( 1, $links['author'] ); 1893 $this->assertSame( rest_url( '/wp/v2/posts/' . $post ), $links[' post'][0]['href'] );1894 $this->assertSame( 'post', $links[' post'][0]['attributes']['post_type'] );1895 $this->assertSame( $post, $links[' post'][0]['attributes']['id'] );1896 $this->assertTrue( $links[' post'][0]['attributes']['embeddable'] );1893 $this->assertSame( rest_url( '/wp/v2/posts/' . $post ), $links['https://api.w.org/attached-to'][0]['href'] ); 1894 $this->assertSame( 'post', $links['https://api.w.org/attached-to'][0]['attributes']['post_type'] ); 1895 $this->assertSame( $post, $links['https://api.w.org/attached-to'][0]['attributes']['id'] ); 1896 $this->assertTrue( $links['https://api.w.org/attached-to'][0]['attributes']['embeddable'] ); 1897 1897 } 1898 1898
Note: See TracChangeset
for help on using the changeset viewer.