We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abcccd2 commit 793cfa6Copy full SHA for 793cfa6
Tests/Form/DoctrineOrmTypeGuesserTest.php
@@ -28,7 +28,7 @@ class DoctrineOrmTypeGuesserTest extends TestCase
28
*/
29
public function testTypeGuesser(string $type, $expected)
30
{
31
- $classMetadata = $this->getMockBuilder(ClassMetadata::class)->disableOriginalConstructor()->getMock();
+ $classMetadata = $this->createMock(ClassMetadata::class);
32
$classMetadata->fieldMappings['field'] = true;
33
$classMetadata->expects($this->once())->method('getTypeOfField')->with('field')->willReturn($type);
34
0 commit comments