Skip to content

Commit c44caaf

Browse files
author
Dale Sikkema
committed
MAGETWO-31834: Fatal error if trying to navigate to Frontend at first time after install
- EntityChildTestAbstract
1 parent 2a296e7 commit c44caaf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/EntityChildTestAbstract.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,31 @@ public function testGenerate()
9090
$this->ioObjectMock->expects($this->once())
9191
->method('makeResultFileDirectory')
9292
->with($this->getResultClassName())
93-
->will($this->returnValue(true));
93+
->willReturn(true);
9494

9595
//Mocking _generateCode call
9696
$this->classGenerator->expects($this->once())
9797
->method('setName')
9898
->with($this->getResultClassName())
99-
->will($this->returnSelf());
99+
->willReturnSelf();
100100
$this->classGenerator->expects($this->once())
101101
->method('addProperties')
102-
->will($this->returnSelf());
102+
->willReturnSelf();
103103
$this->classGenerator->expects($this->once())
104104
->method('addMethods')
105-
->will($this->returnSelf());
105+
->willReturnSelf();
106106
$this->classGenerator->expects($this->once())
107107
->method('setClassDocBlock')
108-
->will($this->returnSelf());
108+
->willReturnSelf();
109109
$this->classGenerator->expects($this->once())
110110
->method('generate')
111-
->will($this->returnValue($generatedCode));
111+
->willReturn($generatedCode);
112112

113113
//Mocking generation
114114
$this->ioObjectMock->expects($this->any())
115115
->method('getResultFileName')
116116
->with($this->getResultClassName())
117-
->will($this->returnValue($resultFileName));
117+
->willReturn($resultFileName);
118118
$this->ioObjectMock->expects($this->once())
119119
->method('writeResultFile')
120120
->with($resultFileName, $generatedCode);

0 commit comments

Comments
 (0)