You appear to be a bot. Output may be restricted
Description
Usage
Block_Template_Test::wpSetUpBeforeClass();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/block-template.php
Lines:
1 to 18 of 18
public static function wpSetUpBeforeClass() { // Set up custom template post. $args = array( 'post_type' => 'wp_template', 'post_name' => 'wp-custom-template-my-block-template', 'post_title' => 'My Custom Block Template', 'post_content' => 'Content', 'post_excerpt' => 'Description of my block template', 'tax_input' => array( 'wp_theme' => array( get_stylesheet(), ), ), ); self::$post = self::factory()->post->create_and_get( $args ); wp_set_post_terms( self::$post->ID, get_stylesheet(), 'wp_theme' ); }