Skip to content

Commit

Permalink
reformatting functions in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Jun 23, 2023
1 parent 44324b8 commit 92207a8
Showing 1 changed file with 57 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,84 +107,90 @@ public static function wpSetupBeforeClass( $factory ) {
// Update post to create a new revisions.
$new_styles_post = array(
'ID' => self::$global_styles_id,
'post_content' => wp_json_encode( array(
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'isGlobalStylesUserThemeJSON' => true,
'styles' => array(
'color' => array(
'background' => 'hotpink',
'post_content' => wp_json_encode(
array(
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'isGlobalStylesUserThemeJSON' => true,
'styles' => array(
'color' => array(
'background' => 'hotpink',
),
),
),
'settings' => array(
'color' => array(
'palette' => array(
'custom' => array(
array(
'name' => 'Ghost',
'slug' => 'ghost',
'color' => 'ghost',
'settings' => array(
'color' => array(
'palette' => array(
'custom' => array(
array(
'name' => 'Ghost',
'slug' => 'ghost',
'color' => 'ghost',
),
),
),
),
),
),
) ),
)
),
);

wp_update_post( $new_styles_post, true, false );

$new_styles_post = array(
'ID' => self::$global_styles_id,
'post_content' => wp_json_encode( array(
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'isGlobalStylesUserThemeJSON' => true,
'styles' => array(
'color' => array(
'background' => 'lemonchiffon',
'post_content' => wp_json_encode(
array(
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'isGlobalStylesUserThemeJSON' => true,
'styles' => array(
'color' => array(
'background' => 'lemonchiffon',
),
),
),
'settings' => array(
'color' => array(
'palette' => array(
'custom' => array(
array(
'name' => 'Gwanda',
'slug' => 'gwanda',
'color' => 'gwanda',
'settings' => array(
'color' => array(
'palette' => array(
'custom' => array(
array(
'name' => 'Gwanda',
'slug' => 'gwanda',
'color' => 'gwanda',
),
),
),
),
),
),
) ),
)
),
);

wp_update_post( $new_styles_post, true, false );

$new_styles_post = array(
'ID' => self::$global_styles_id,
'post_content' => wp_json_encode( array(
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'isGlobalStylesUserThemeJSON' => true,
'styles' => array(
'color' => array(
'background' => 'chocolate',
'post_content' => wp_json_encode(
array(
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'isGlobalStylesUserThemeJSON' => true,
'styles' => array(
'color' => array(
'background' => 'chocolate',
),
),
),
'settings' => array(
'color' => array(
'palette' => array(
'custom' => array(
array(
'name' => 'Stacy',
'slug' => 'stacy',
'color' => 'stacy',
'settings' => array(
'color' => array(
'palette' => array(
'custom' => array(
array(
'name' => 'Stacy',
'slug' => 'stacy',
'color' => 'stacy',
),
),
),
),
),
),
) ),
)
),
);

wp_update_post( $new_styles_post, true, false );
Expand Down

0 comments on commit 92207a8

Please sign in to comment.