From a033968f06e6ecad836288ed1b29ba9ccbfed843 Mon Sep 17 00:00:00 2001 From: John Linhart Date: Mon, 28 Aug 2017 08:47:58 +0200 Subject: [PATCH] Filters added to the segment test payload to ensure it works --- tests/Api/SegmentsTest.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/Api/SegmentsTest.php b/tests/Api/SegmentsTest.php index 629f2a75..70c660ac 100644 --- a/tests/Api/SegmentsTest.php +++ b/tests/Api/SegmentsTest.php @@ -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', + ), + ), ); }