Skip to content

Commit 7b92ff8

Browse files
authored
Merge pull request #130 from escopecz/segment-filters
Filters added to the segment test payload to ensure it works
2 parents a833caf + a033968 commit 7b92ff8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tests/Api/SegmentsTest.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,20 @@ class SegmentsTest extends MauticApiTestCase
2121
public function setUp() {
2222
$this->api = $this->getContext('segments');
2323
$this->testPayload = array(
24-
'name' => 'API test'
24+
'name' => 'List all GMail contacts',
25+
'description' => 'Created via API Library unit tests',
26+
'isGlobal' => true,
27+
'filters' => array(
28+
array(
29+
'glue' => 'and',
30+
'field' => 'email',
31+
'object' => 'lead',
32+
'type' => 'email',
33+
'filter' => '*@gmail.com',
34+
'display' => null,
35+
'operator' => 'like',
36+
),
37+
),
2538
);
2639
}
2740

0 commit comments

Comments
 (0)