Skip to content

Commit d5b6813

Browse files
committed
testing 123
1 parent ef9dc58 commit d5b6813

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/FormTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,17 @@ public function test_get_subscriber_tags()
276276
$post = get_post(1);
277277
$form = new MC4WP_Form(1, $post);
278278
$form->settings = [
279-
'subscriber_tags' => 'foo,,bar'
279+
'subscriber_tags' => 'foo,bar',
280+
'remove_subscriber_tags' => 'old,,tag'
280281
];
281282

282-
$this->assertEquals($form->get_subscriber_tags(), ['foo', 'bar']);
283+
$this->assertEquals($form->get_subscriber_tags(), [
284+
['name' => 'foo', 'status' => 'active'],
285+
['name' => 'bar', 'status' => 'active'],
286+
['name' => 'old', 'status' => 'inactive'],
287+
['name' => 'tag', 'status' => 'inactive']
288+
]);
283289
}
290+
291+
284292
}

0 commit comments

Comments
 (0)