Skip to content

Commit b101c45

Browse files
author
gggeek
committed
one more test fix attempt
1 parent e432726 commit b101c45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/phpunit/3_TagsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public function goodDSLProvider()
5959
{
6060
$dslDir = $this->dslDir.'/eztags';
6161

62-
$tagsFieldType = $this->getContainer()->get('ezpublish.fieldType.eztags');
62+
// try to make this work across phpunit versions
63+
$container = $this->container == null ? $this->getContainer() : $this->container;
64+
$tagsFieldType = $container->get('ezpublish.fieldType.eztags');
6365
$validatorConfiguration = $tagsFieldType->getValidatorConfigurationSchema();
6466
if (isset($validatorConfiguration['TagsValueValidator']['subTreeLimit'])) {
6567
$dslDir .= '/v3';

0 commit comments

Comments
 (0)