Skip to content

Commit

Permalink
EZP-28902: Creating a user with existing username results in Internal…
Browse files Browse the repository at this point in the history
… Server Error. (#2279)
  • Loading branch information
mikadamczyk authored and Łukasz Serwatka committed Mar 19, 2018
1 parent 43d8cd2 commit f6c2e24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/FieldType/UserIntegrationTest.php
Original file line number Diff line number Diff line change
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 f6c2e24

Please sign in to comment.