Skip to content

Commit

Permalink
Merge pull request #130 from escopecz/segment-filters
Browse files Browse the repository at this point in the history
Filters added to the segment test payload to ensure it works
  • Loading branch information
escopecz authored Aug 28, 2017
2 parents a833caf + a033968 commit 7b92ff8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/Api/SegmentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,20 @@ class SegmentsTest extends MauticApiTestCase
public function setUp() {
$this->api = $this->getContext('segments');
$this->testPayload = array(
'name' => 'API test'
'name' => 'List all GMail contacts',
'description' => 'Created via API Library unit tests',
'isGlobal' => true,
'filters' => array(
array(
'glue' => 'and',
'field' => 'email',
'object' => 'lead',
'type' => 'email',
'filter' => '*@gmail.com',
'display' => null,
'operator' => 'like',
),
),
);
}

Expand Down

0 comments on commit 7b92ff8

Please sign in to comment.