GFMFI_ConstructTest

The Gravity Forms: Multiple Form Instances GFMFI ConstructTest class.

Defined (1)

The class is defined in the following location(s).

/tests/unit-tests/GFMFI_ConstructTest.php  
  1. class GFMFI_ConstructTest extends WP_UnitTestCase { 
  2.  
  3. public function setUp() { 
  4. $this->gfmfi = $this->getMock('Gravity_Forms_Multiple_Form_Instances', null); 
  5.  
  6. public function tearDown() { 
  7. unset( $this->gfmfi ); 
  8.  
  9. /** 
  10. * @covers Gravity_Forms_Multiple_Form_Instances::__construct 
  11. */ 
  12. public function testHookRegistered() { 
  13. $this->gfmfi->__construct(); 
  14.  
  15. $this->assertSame( 10, has_filter( 'gform_get_form_filter', array( $this->gfmfi, 'gform_get_form_filter' ) ) ); 
  16.