Skip to content

Commit 713bf24

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 2d6c667 commit 713bf24

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

lib/internal/Magento/Framework/Code/Test/Unit/Generator/IoTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ public function testWriteResultFile()
8181
->method('filePutContents')
8282
->with(
8383
$this->stringContains(self::FILE_NAME),
84-
$this->equalTo("<?php\n" . self::FILE_CONTENT)
85-
)->will($this->returnValue(true));
84+
"<?php\n" . self::FILE_CONTENT
85+
)->willReturn(true);
8686

8787
$this->_filesystemDriverMock->expects($this->once())
8888
->method('rename')
8989
->with(
9090
$this->stringContains(self::FILE_NAME),
91-
$this->equalTo(self::FILE_NAME)
92-
)->will($this->returnValue(true));
91+
self::FILE_NAME
92+
)->willReturn(true);
9393

9494
$this->assertTrue($this->_object->writeResultFile(self::FILE_NAME, self::FILE_CONTENT));
9595
}

0 commit comments

Comments
 (0)