Skip to content

Commit 75ff232

Browse files
committed
unit fix
1 parent e1633e6 commit 75ff232

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Form/DataTransformer/ObjectToIdTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testInvalidArray() : void
111111
$transformer = new ObjectToIdTransformer($registry, TestObject::class, 'name');
112112

113113
$this->expectException(InvalidArgumentException::class);
114-
$this->expectExceptionMessage('Expected an object. Got: array');
114+
$this->expectExceptionMessage('Expected an instance of Shapecode\Bundle\HiddenEntityTypeBundle\Tests\Model\TestObject. Got: array');
115115

116116
$transformer->transform([$object]);
117117
}

tests/Form/DataTransformer/ObjectsToIdTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testInvalidArray() : void
9898
$transformer = new ObjectsToIdTransformer($registry, TestObject::class, 'name');
9999

100100
$this->expectException(InvalidArgumentException::class);
101-
$this->expectExceptionMessage('Expected an array. Got: Shapecode\Bundle\HiddenEntityTypeBundle\Tests\Model\TestFormModel');
101+
$this->expectExceptionMessage('Expected an iterable. Got: Shapecode\Bundle\HiddenEntityTypeBundle\Tests\Model\TestFormModel');
102102

103103
$transformer->transform($object);
104104
}

0 commit comments

Comments
 (0)