Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test tweaks
  • Loading branch information
creativecoder committed Jan 11, 2024
commit 02728cfdbb451e6d8fc8b501500f9f7132d24c45
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ public function test_create_item_default_theme_json_version() {
$data = $response->get_data();

$this->assertSame( 2, $data['theme_json_version'], 'The default theme.json version should be 2.' );

wp_delete_post( $data['id'], true );
}

/**
Expand Down Expand Up @@ -572,7 +574,7 @@ protected function check_font_face_data( $data, $post_id, $links ) {
$this->assertSame( $post->post_parent, $data['parent'] );

$this->assertArrayHasKey( 'theme_json_version', $data );
$this->assertSame( 2, $data['theme_json_version'] );
$this->assertSame( WP_Theme_JSON::LATEST_SCHEMA, $data['theme_json_version'] );

$this->assertArrayHasKey( 'font_face_settings', $data );
$this->assertSame( $post->post_content, wp_json_encode( $data['font_face_settings'] ) );
Expand Down