Skip to content

Commit

Permalink
test for original form class addition
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Feb 5, 2016
1 parent 98884e5 commit 47e5273
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit-tests/GFMFI_GformGetFormFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ public function tearDown() {
unset( $this->randomId );
}

/**
* @covers Gravity_Forms_Multiple_Form_Instances::gform_get_form_filter
*/
public function testOriginalFormIdAddition() {
$input = ' gform_wrapper ';
$expected = ' gform_wrapper gform_wrapper_original_id_' . $this->form['id'] . ' ';
$actual = $this->gfmfi->gform_get_form_filter( $input, $this->form );

$this->assertSame( $expected, $actual );
}

/**
* @covers Gravity_Forms_Multiple_Form_Instances::gform_get_form_filter
*/
Expand Down

0 comments on commit 47e5273

Please sign in to comment.