Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
brookinsconsulting committed Mar 19, 2018
2 parents 9f59276 + f6c2e24 commit bef01da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/FieldType/UserIntegrationTest.php
Expand Up @@ -14,6 +14,7 @@
use eZ\Publish\SPI\Persistence\Content\Field;
use eZ\Publish\SPI\Persistence\Content\FieldTypeConstraints;
use eZ\Publish\SPI\Persistence\User;
use eZ\Publish\Core\Persistence\Cache\UserHandler;

/**
* Integration test for legacy storage field types.
Expand Down Expand Up @@ -54,7 +55,8 @@ public function getTypeName()
*/
public function getCustomHandler()
{
$fieldType = new FieldType\User\Type();
$userHandler = $this->createMock(UserHandler::class);
$fieldType = new FieldType\User\Type($userHandler);
$fieldType->setTransformationProcessor($this->getTransformationProcessor());

return $this->getHandler(
Expand Down

0 comments on commit bef01da

Please sign in to comment.