We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef9dc58 commit d5b6813Copy full SHA for d5b6813
tests/FormTest.php
@@ -276,9 +276,17 @@ public function test_get_subscriber_tags()
276
$post = get_post(1);
277
$form = new MC4WP_Form(1, $post);
278
$form->settings = [
279
- 'subscriber_tags' => 'foo,,bar'
+ 'subscriber_tags' => 'foo,bar',
280
+ 'remove_subscriber_tags' => 'old,,tag'
281
];
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
+ ]);
289
}
290
+
291
292
0 commit comments