Changeset 301 in tests for wp-testcase/test_actions.php
- Timestamp:
- 05/16/2010 01:38:57 PM (16 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_actions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_actions.php
r299 r301 275 275 276 276 $this->assertSame($GLOBALS[$context[0]], $context[1]); 277 278 $tag2 = rand_str(); 279 $closure2 = function() { $GLOBALS['closure_no_args'] = true;}; 280 add_action($tag2, $closure2); 281 282 $this->assertSame( 10, has_action($tag2, $closure2) ); 283 284 do_action($tag2); 285 286 $this->assertTrue($GLOBALS['closure_no_args']); 287 277 288 } 278 289
Note: See TracChangeset
for help on using the changeset viewer.