From 5849d4fafd9e5668387e45bca7f00639c1b00037 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 31 Jul 2022 16:49:34 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/option/transient.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/option/transient.php b/tests/phpunit/tests/option/transient.php index 0bb6b685ee..e82dc594cc 100644 --- a/tests/phpunit/tests/option/transient.php +++ b/tests/phpunit/tests/option/transient.php @@ -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() );