Skip to content
Prev Previous commit
Rename test file and simplify test actual
  • Loading branch information
hellofromtonya authored Sep 15, 2022
commit 0af827e7c4a11c6be944091d36c18c46201f7a93
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @covers ::wp_register_persisted_preferences_meta
*/
class Tests_User_wpRegisterPersistedPreferencesMeta extends WP_UnitTestCase {
class Tests_User_WpRegisterPersistedPreferencesMeta extends WP_UnitTestCase {

/**
* Test that user persisted preferences meta is registered.
Expand All @@ -28,8 +28,6 @@ public function test_should_register_persisted_preferences_meta() {
);

// Test to detect changes in meta key structure.
$structure = $wp_meta_keys['user'][''][ $meta_key ];

$this->assertSame(
array(
'type' => 'object',
Expand All @@ -55,7 +53,7 @@ public function test_should_register_persisted_preferences_meta() {
),
),
),
$structure,
$wp_meta_keys['user'][''][ $meta_key ],
'The registered metadata did not have the expected structure'
);
}
Expand Down