Changeset 118 in tests for wp-testcase/test_filters.php
- Timestamp:
- 12/05/2007 04:35:52 AM (18 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_filters.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_filters.php
r100 r118 162 162 163 163 remove_filter('all', array(&$a, 'filterall')); 164 $this->assertFalse( has_filter('all', array(&$a, 'filterall')) ); 164 165 165 166 } … … 171 172 172 173 add_filter('all', array(&$a, 'filterall')); 174 $this->assertTrue( has_filter('all') ); 175 $this->assertEquals( 10, has_filter('all', array(&$a, 'filterall')) ); 173 176 $this->assertEquals($val, apply_filters($tag, $val)); 174 177 … … 179 182 // now remove the filter, do it again, and make sure it's not called this time 180 183 remove_filter('all', array(&$a, 'filterall')); 184 $this->assertFalse( has_filter('all', array(&$a, 'filterall')) ); 185 $this->assertFalse( has_filter('all') ); 181 186 $this->assertEquals($val, apply_filters($tag, $val)); 182 187 // call cound should remain at 1
Note: See TracChangeset
for help on using the changeset viewer.