- Timestamp:
- 08/21/2023 03:53:04 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestTemplatesController.php
r56248 r56421 871 871 $this->assertInstanceOf( 'stdClass', $prepared, 'The item could not be prepared for the database.' ); 872 872 873 $this->assertObjectHas Attribute( 'post_type', $prepared, 'The "post_type" was not included in the prepared template part.' );874 $this->assertObjectHas Attribute( 'post_status', $prepared, 'The "post_status" was not included in the prepared template part.' );875 $this->assertObjectHas Attribute( 'tax_input', $prepared, 'The "tax_input" was not included in the prepared template part.' );873 $this->assertObjectHasProperty( 'post_type', $prepared, 'The "post_type" was not included in the prepared template part.' ); 874 $this->assertObjectHasProperty( 'post_status', $prepared, 'The "post_status" was not included in the prepared template part.' ); 875 $this->assertObjectHasProperty( 'tax_input', $prepared, 'The "tax_input" was not included in the prepared template part.' ); 876 876 $this->assertArrayHasKey( 'wp_theme', $prepared->tax_input, 'The "wp_theme" tax was not included in the prepared template part.' ); 877 877 $this->assertArrayHasKey( 'wp_template_part_area', $prepared->tax_input, 'The "wp_template_part_area" tax was not included in the prepared template part.' ); 878 $this->assertObjectHas Attribute( 'post_content', $prepared, 'The "post_content" was not included in the prepared template part.' );879 $this->assertObjectHas Attribute( 'post_title', $prepared, 'The "post_title" was not included in the prepared template part.' );878 $this->assertObjectHasProperty( 'post_content', $prepared, 'The "post_content" was not included in the prepared template part.' ); 879 $this->assertObjectHasProperty( 'post_title', $prepared, 'The "post_title" was not included in the prepared template part.' ); 880 880 881 881 $this->assertSame( 'wp_template_part', $prepared->post_type, 'The "post_type" in the prepared template part should be "wp_template_part".' );
Note: See TracChangeset
for help on using the changeset viewer.