Make WordPress Core

Changeset 99 in tests


Ignore:
Timestamp:
12/03/2007 10:03:58 AM (17 years ago)
Author:
tellyworth
Message:

MockAction: fix get_call_count()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testlib/utils.php

    r81 r99  
    8888    // return a count of the number of times the action was called since the last reset
    8989    function get_call_count($tag='') {
    90         if ($hook) {
     90        if ($tag) {
    9191            $count = 0;
    9292            foreach ($this->events as $e)
    93                 if ($e['action'] == $hook)
     93                if ($e['action'] == $tag)
    9494                    ++$count;
    9595            return $count;
Note: See TracChangeset for help on using the changeset viewer.