File tree 1 file changed +7
-0
lines changed
Tests/Functional/EventListener
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 14
14
use MauticPlugin \CustomObjectsBundle \Entity \CustomItem ;
15
15
use MauticPlugin \CustomObjectsBundle \Entity \CustomObject ;
16
16
use MauticPlugin \CustomObjectsBundle \Provider \CustomFieldTypeProvider ;
17
+ use MauticPlugin \CustomObjectsBundle \Tests \ProjectVersionTrait ;
17
18
use Symfony \Component \HttpFoundation \Request ;
18
19
19
20
class FilterOperatorSubscriberTest extends MauticMysqlTestCase
20
21
{
22
+ use ProjectVersionTrait;
23
+
21
24
public function testIfNewOperatorNotInCustomObjectsAddedinSegmentFilter ()
22
25
{
23
26
$ crawler = $ this ->client ->request (Request::METHOD_GET , '/s/segments/new/ ' );
@@ -84,6 +87,10 @@ public function testIfProperContactsAreAddedinSegmentWithNotInCustomObjectsFilte
84
87
85
88
public function testCustomObjectSegmentFilterOperatorForDateField (): void
86
89
{
90
+ if (!$ this ->isCloudProject ()) {
91
+ $ this ->markTestSkipped ('As context is not available for segment only in 4.4 ' );
92
+ }
93
+
87
94
$ leadField = $ this ->createField ('date_field ' , 'date ' );
88
95
89
96
$ fieldTypeProvider = self ::$ container ->get ('custom_field.type.provider ' );
You can’t perform that action at this time.
0 commit comments