Skip to content

Commit 47e5273

Browse files
committed
test for original form class addition
1 parent 98884e5 commit 47e5273

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/unit-tests/GFMFI_GformGetFormFilterTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ public function tearDown() {
2121
unset( $this->randomId );
2222
}
2323

24+
/**
25+
* @covers Gravity_Forms_Multiple_Form_Instances::gform_get_form_filter
26+
*/
27+
public function testOriginalFormIdAddition() {
28+
$input = ' gform_wrapper ';
29+
$expected = ' gform_wrapper gform_wrapper_original_id_' . $this->form['id'] . ' ';
30+
$actual = $this->gfmfi->gform_get_form_filter( $input, $this->form );
31+
32+
$this->assertSame( $expected, $actual );
33+
}
34+
2435
/**
2536
* @covers Gravity_Forms_Multiple_Form_Instances::gform_get_form_filter
2637
*/

0 commit comments

Comments
 (0)