@@ -76,7 +76,7 @@ public function testCreateNamedBuilderWithTypeName()
76
76
{
77
77
$ options = ['a ' => '1 ' , 'b ' => '2 ' ];
78
78
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' ];
79
- $ resolvedType = $ this ->getMockResolvedType ( );
79
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
80
80
81
81
$ this ->registry ->expects ($ this ->once ())
82
82
->method ('getType ' )
@@ -104,7 +104,7 @@ public function testCreateNamedBuilderFillsDataOption()
104
104
$ givenOptions = ['a ' => '1 ' , 'b ' => '2 ' ];
105
105
$ expectedOptions = array_merge ($ givenOptions , ['data ' => 'DATA ' ]);
106
106
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' , 'data ' => 'DATA ' ];
107
- $ resolvedType = $ this ->getMockResolvedType ( );
107
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
108
108
109
109
$ this ->registry ->expects ($ this ->once ())
110
110
->method ('getType ' )
@@ -131,7 +131,7 @@ public function testCreateNamedBuilderDoesNotOverrideExistingDataOption()
131
131
{
132
132
$ options = ['a ' => '1 ' , 'b ' => '2 ' , 'data ' => 'CUSTOM ' ];
133
133
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' , 'data ' => 'CUSTOM ' ];
134
- $ resolvedType = $ this ->getMockResolvedType ( );
134
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
135
135
136
136
$ this ->registry ->expects ($ this ->once ())
137
137
->method ('getType ' )
@@ -196,7 +196,7 @@ public function testCreateNamed()
196
196
{
197
197
$ options = ['a ' => '1 ' , 'b ' => '2 ' ];
198
198
$ resolvedOptions = ['a ' => '2 ' , 'b ' => '3 ' ];
199
- $ resolvedType = $ this ->getMockResolvedType ( );
199
+ $ resolvedType = $ this ->createMock (ResolvedFormTypeInterface::class );
200
200
201
201
$ this ->registry ->expects ($ this ->once ())
202
202
->method ('getType ' )
@@ -470,9 +470,4 @@ private function getMockFactory(array $methods = [])
470
470
->setConstructorArgs ([$ this ->registry ])
471
471
->getMock ();
472
472
}
473
-
474
- private function getMockResolvedType ()
475
- {
476
- return $ this ->createMock (ResolvedFormTypeInterface::class);
477
- }
478
473
}
0 commit comments