Tests: Update a transients test to account for terminology changes in MockAction.

Follow-up to [33110], [53805].

See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@53807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-07-31 16:49:34 +00:00
parent cd7a7924cb
commit 5849d4fafd
+8 -6
View File
@@ -145,14 +145,16 @@ class Tests_Option_Transient extends WP_UnitTestCase {
$expected = array(
array(
'action' => 'action',
'tag' => 'delete_option',
'args' => array( $transient_option ),
'action' => 'action',
'hook_name' => 'delete_option',
'tag' => 'delete_option', // Back compat.
'args' => array( $transient_option ),
),
array(
'action' => 'action',
'tag' => 'delete_option',
'args' => array( $timeout ),
'action' => 'action',
'hook_name' => 'delete_option',
'tag' => 'delete_option', // Back compat.
'args' => array( $timeout ),
),
);
$this->assertSame( $expected, $a->get_events() );