File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/internal/Magento/Framework/ObjectManager/Test/Unit/Code/Generator Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,16 +92,16 @@ public function testGenerate()
92
92
$ this ->classGenerator ->expects ($ this ->once ())
93
93
->method ('setName ' )
94
94
->with (self ::RESULT_CLASS_NAME )
95
- ->will ( $ this -> returnSelf () );
95
+ ->willReturnSelf ( );
96
96
$ this ->classGenerator ->expects ($ this ->once ())
97
97
->method ('addProperties ' )
98
- ->will ( $ this -> returnSelf () );
98
+ ->willReturnSelf ( );
99
99
$ this ->classGenerator ->expects ($ this ->once ())
100
100
->method ('addMethods ' )
101
- ->will ( $ this -> returnSelf () );
101
+ ->willReturnSelf ( );
102
102
$ this ->classGenerator ->expects ($ this ->once ())
103
103
->method ('setClassDocBlock ' )
104
- ->will ( $ this -> returnSelf () );
104
+ ->willReturnSelf ( );
105
105
$ this ->classGenerator ->expects ($ this ->once ())
106
106
->method ('generate ' )
107
107
->will ($ this ->returnValue ($ generatedCode ));
You can’t perform that action at this time.
0 commit comments