Skip to content

Commit 2a296e7

Browse files
author
Dale Sikkema
committed
MAGETWO-31834: Fatal error if trying to navigate to Frontend at first time after install
- update unit tests
1 parent 713bf24 commit 2a296e7

File tree

1 file changed

+4
-4
lines changed
  • lib/internal/Magento/Framework/ObjectManager/Test/Unit/Code/Generator

1 file changed

+4
-4
lines changed

lib/internal/Magento/Framework/ObjectManager/Test/Unit/Code/Generator/ConverterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ public function testGenerate()
9292
$this->classGenerator->expects($this->once())
9393
->method('setName')
9494
->with(self::RESULT_CLASS_NAME)
95-
->will($this->returnSelf());
95+
->willReturnSelf();
9696
$this->classGenerator->expects($this->once())
9797
->method('addProperties')
98-
->will($this->returnSelf());
98+
->willReturnSelf();
9999
$this->classGenerator->expects($this->once())
100100
->method('addMethods')
101-
->will($this->returnSelf());
101+
->willReturnSelf();
102102
$this->classGenerator->expects($this->once())
103103
->method('setClassDocBlock')
104-
->will($this->returnSelf());
104+
->willReturnSelf();
105105
$this->classGenerator->expects($this->once())
106106
->method('generate')
107107
->will($this->returnValue($generatedCode));

0 commit comments

Comments
 (0)