Skip to content

Commit

Permalink
TASK: Merge branch '3.3' into 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed May 8, 2018
2 parents 07a250b + 834a23a commit 176aa62
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Neos\Media\Domain\Model\ImageInterface;
use Neos\Neos\Domain\Model\Domain;
use Neos\Neos\Service\Mapping\NodePropertyConverterService;
use Neos\Neos\Ui\Fusion\Helper\ActivationHelper;

/**
* Functional test case which tests the node property converter
Expand Down Expand Up @@ -149,6 +150,10 @@ public function arrayOfStringsHasToProvideTypeConverterToBeConvertedToArrayOfStr
*/
public function complexTypesWithGivenTypeConverterAreConvertedByTypeConverter()
{
$mockActivationHelper = self::getMockBuilder(ActivationHelper::class)->getMock();
$mockActivationHelper->expects(self::any())->method('isLegacyBackendEnabled')->willReturn(true);
$this->objectManager->setInstance(ActivationHelper::class, $mockActivationHelper);

$propertyValue = $this->getMockForAbstractClass(ImageInterface::class);
$expected = json_encode([
'__identity' => null,
Expand All @@ -163,7 +168,7 @@ public function complexTypesWithGivenTypeConverterAreConvertedByTypeConverter()
$nodeType
->expects($this->any())
->method('getPropertyType')
->willReturn('Neos\Media\Domain\Model\ImageInterface');
->willReturn(ImageInterface::class);

$node = $this
->getMockBuilder(Node::class)
Expand Down

0 comments on commit 176aa62

Please sign in to comment.