Make WordPress Core

Changeset 53807


Ignore:
Timestamp:
07/31/2022 04:49:34 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

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

See #55652.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/option/transient.php

    r52010 r53807  
    146146                $expected = array(
    147147                        array(
    148                                 'action' => 'action',
    149                                 'tag'    => 'delete_option',
    150                                 'args'   => array( $transient_option ),
     148                                'action'    => 'action',
     149                                'hook_name' => 'delete_option',
     150                                'tag'       => 'delete_option', // Back compat.
     151                                'args'      => array( $transient_option ),
    151152                        ),
    152153                        array(
    153                                 'action' => 'action',
    154                                 'tag'    => 'delete_option',
    155                                 'args'   => array( $timeout ),
     154                                'action'    => 'action',
     155                                'hook_name' => 'delete_option',
     156                                'tag'       => 'delete_option', // Back compat.
     157                                'args'      => array( $timeout ),
    156158                        ),
    157159                );
Note: See TracChangeset for help on using the changeset viewer.