Skip to content

Commit 8c15141

Browse files
committed
Merge remote-tracking branch 'origin/MAUT-11515' into development
2 parents 5229e12 + 26960c3 commit 8c15141

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tests/Functional/EventListener/FilterOperatorSubscriberTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
use MauticPlugin\CustomObjectsBundle\Entity\CustomItem;
1515
use MauticPlugin\CustomObjectsBundle\Entity\CustomObject;
1616
use MauticPlugin\CustomObjectsBundle\Provider\CustomFieldTypeProvider;
17+
use MauticPlugin\CustomObjectsBundle\Tests\ProjectVersionTrait;
1718
use Symfony\Component\HttpFoundation\Request;
1819

1920
class FilterOperatorSubscriberTest extends MauticMysqlTestCase
2021
{
22+
use ProjectVersionTrait;
23+
2124
public function testIfNewOperatorNotInCustomObjectsAddedinSegmentFilter()
2225
{
2326
$crawler = $this->client->request(Request::METHOD_GET, '/s/segments/new/');
@@ -84,6 +87,10 @@ public function testIfProperContactsAreAddedinSegmentWithNotInCustomObjectsFilte
8487

8588
public function testCustomObjectSegmentFilterOperatorForDateField(): void
8689
{
90+
if (!$this->isCloudProject()) {
91+
$this->markTestSkipped('As context is not available for segment only in 4.4');
92+
}
93+
8794
$leadField = $this->createField('date_field', 'date');
8895

8996
$fieldTypeProvider = self::$container->get('custom_field.type.provider');

0 commit comments

Comments
 (0)