You appear to be a bot. Output may be restricted
Description
Usage
Block_Template_Utils_Test::test_build_template_result_from_post();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/block-template-utils.php
Lines:
1 to 17 of 17
public function test_build_template_result_from_post() { $template = _build_template_result_from_post( self::$post, 'wp_template' ); $this->assertNotWPError( $template ); $this->assertSame( get_stylesheet() . '//my_template', $template->id ); $this->assertSame( get_stylesheet(), $template->theme ); $this->assertSame( 'my_template', $template->slug ); $this->assertSame( 'publish', $template->status ); $this->assertSame( 'custom', $template->source ); $this->assertSame( 'My Template', $template->title ); $this->assertSame( 'Description of my template', $template->description ); $this->assertSame( 'wp_template', $template->type ); }