Skip to content

Commit

Permalink
Fix your tests, man!
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Oct 21, 2024
1 parent 51f26dc commit 9d34c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpunit/class-wp-theme-json-resolver-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1369,8 +1369,8 @@ public function test_get_resolved_theme_uris() {
$this->assertSame( $expected_data, $actual, 'Resolved theme uris do not match.' );

// Test that resolved theme uris are cached.
$current_stylesheet_directory = get_stylesheet_directory();
$expected_cache_data = array( "$current_stylesheet_directory" => $actual );
$cache_key = md5( wp_json_encode( $theme_json->get_raw_data() ) );
$expected_cache_data = array( "$cache_key" => $actual );
$this->assertSame( $expected_cache_data, static::$property_resolved_theme_uris_cache->getValue(), 'Resolved theme uris cache data does not match.' );
}

Expand Down

0 comments on commit 9d34c56

Please sign in to comment.