Skip to content

Commit c08d367

Browse files
MAGECLOUD-1062: Eliminate TestCase bootstrap
1 parent e29997b commit c08d367

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Magento/MagentoCloud/Test/Unit/Process/Deploy/InstallUpdate/Update/SetupTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ protected function setUp()
5252
$this->fileMock = $this->createMock(File::class);
5353
$this->shellMock = $this->getMockForAbstractClass(ShellInterface::class);
5454
$this->loggerMock = $this->getMockForAbstractClass(LoggerInterface::class);
55-
$this->directoryListMock = $this->getMockBuilder(DirectoryList::class)
56-
->disableOriginalConstructor()
57-
->getMock();
55+
$this->directoryListMock = $this->createMock(DirectoryList::class);
5856

5957
$this->process = new Setup(
6058
$this->loggerMock,

src/Magento/MagentoCloud/Test/Unit/Process/Deploy/PreDeploy/RestoreWritableDirectoriesTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ protected function setUp()
5555
$this->environmentMock = $this->getMockBuilder(Environment::class)
5656
->disableOriginalConstructor()
5757
->getMock();
58-
$this->directoryListMock = $this->getMockBuilder(DirectoryList::class)
59-
->disableOriginalConstructor()
60-
->getMock();
58+
$this->directoryListMock = $this->createMock(DirectoryList::class);
6159

6260
$this->process = new RestoreWritableDirectories(
6361
$this->loggerMock,

0 commit comments

Comments
 (0)