| 
                                
                                    @@ 43-50 (lines=8) @@
                                 | 
                            
                                                            
                                    | 40 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 41 | 
                                     | 
                                    	 * Tests that the hook manager can add actions.  | 
                                
                                                            
                                    | 42 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 43 | 
                                     | 
                                    	public function test_adds_action() { | 
                                
                                                            
                                    | 44 | 
                                     | 
                                    		$callable = function () {}; | 
                                
                                                            
                                    | 45 | 
                                     | 
                                     | 
                                
                                                            
                                    | 46 | 
                                     | 
                                    		$this->hook_manager->add_action( 'test', $callable, 11, 12 );  | 
                                
                                                            
                                    | 47 | 
                                     | 
                                     | 
                                
                                                            
                                    | 48 | 
                                     | 
                                    		$this->assertFalse( test_has_filter( 'test', $callable, 10, 12 ) );  | 
                                
                                                            
                                    | 49 | 
                                     | 
                                    		$this->assertTrue( test_has_filter( 'test', $callable, 11, 12 ) );  | 
                                
                                                            
                                    | 50 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 51 | 
                                     | 
                                     | 
                                
                                                            
                                    | 52 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 53 | 
                                     | 
                                    	 * Tests that the hook manager can add filters.  | 
                                
                                                                                
                                 | 
                                
                                    @@ 55-62 (lines=8) @@
                                 | 
                            
                                                            
                                    | 52 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 53 | 
                                     | 
                                    	 * Tests that the hook manager can add filters.  | 
                                
                                                            
                                    | 54 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 55 | 
                                     | 
                                    	public function test_adds_filters() { | 
                                
                                                            
                                    | 56 | 
                                     | 
                                    		$callable = function () {}; | 
                                
                                                            
                                    | 57 | 
                                     | 
                                     | 
                                
                                                            
                                    | 58 | 
                                     | 
                                    		$this->hook_manager->add_filter( 'test', $callable, 11, 12 );  | 
                                
                                                            
                                    | 59 | 
                                     | 
                                     | 
                                
                                                            
                                    | 60 | 
                                     | 
                                    		$this->assertFalse( test_has_filter( 'test', $callable, 10, 12 ) );  | 
                                
                                                            
                                    | 61 | 
                                     | 
                                    		$this->assertTrue( test_has_filter( 'test', $callable, 11, 12 ) );  | 
                                
                                                            
                                    | 62 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 63 | 
                                     | 
                                     | 
                                
                                                            
                                    | 64 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 65 | 
                                     | 
                                    	 * Tests that the hook manager removes hooks on reset.  |