@@ -77,7 +77,7 @@ public function testCreateNamedBuilderWithTypeName()
77
77
{
78
78
$ options = ['a ' => '1 ' , 'b ' => '2 ' ];
79
79
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' ];
80
- $ resolvedType = $ this ->getMockResolvedType ( );
80
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
81
81
82
82
$ this ->registry ->expects ($ this ->once ())
83
83
->method ('getType ' )
@@ -105,7 +105,7 @@ public function testCreateNamedBuilderFillsDataOption()
105
105
$ givenOptions = ['a ' => '1 ' , 'b ' => '2 ' ];
106
106
$ expectedOptions = array_merge ($ givenOptions , ['data ' => 'DATA ' ]);
107
107
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' , 'data ' => 'DATA ' ];
108
- $ resolvedType = $ this ->getMockResolvedType ( );
108
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
109
109
110
110
$ this ->registry ->expects ($ this ->once ())
111
111
->method ('getType ' )
@@ -132,7 +132,7 @@ public function testCreateNamedBuilderDoesNotOverrideExistingDataOption()
132
132
{
133
133
$ options = ['a ' => '1 ' , 'b ' => '2 ' , 'data ' => 'CUSTOM ' ];
134
134
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' , 'data ' => 'CUSTOM ' ];
135
- $ resolvedType = $ this ->getMockResolvedType ( );
135
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
136
136
137
137
$ this ->registry ->expects ($ this ->once ())
138
138
->method ('getType ' )
@@ -211,7 +211,7 @@ public function testCreateNamed()
211
211
{
212
212
$ options = ['a ' => '1 ' , 'b ' => '2 ' ];
213
213
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' ];
214
- $ resolvedType = $ this ->getMockResolvedType ( );
214
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
215
215
216
216
$ this ->registry ->expects ($ this ->once ())
217
217
->method ('getType ' )
@@ -485,9 +485,4 @@ private function getMockFactory(array $methods = [])
485
485
->setConstructorArgs ([$ this ->registry ])
486
486
->getMock ();
487
487
}
488
-
489
- private function getMockResolvedType ()
490
- {
491
- return $ this ->createMock (ResolvedFormTypeInterface::class);
492
- }
493
488
}
0 commit comments