Skip to content

Commit 0f43b32

Browse files
authored
#22880 Fix random fails during parallel SCD execution
Remove unit tests that were failing because we not doing anything in CLI mode
1 parent 63063bc commit 0f43b32

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

lib/internal/Magento/Framework/View/Test/Unit/Asset/LockerProcessTest.php

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,6 @@ protected function setUp()
6464
);
6565
}
6666

67-
/**
68-
* Test for lockProcess method
69-
*
70-
* @param string $method
71-
*
72-
* @dataProvider dataProviderTestLockProcess
73-
*/
74-
public function testLockProcess($method)
75-
{
76-
$this->stateMock->expects(self::once())->method('getMode')->willReturn(State::MODE_DEVELOPER);
77-
$this->filesystemMock->expects(self::once())
78-
->method('getDirectoryWrite')
79-
->with(DirectoryList::VAR_DIR)
80-
->willReturn($this->$method());
81-
82-
$this->lockerProcess->lockProcess(self::LOCK_NAME);
83-
}
84-
8567
public function testNotLockProcessInProductionMode()
8668
{
8769
$this->stateMock->expects(self::once())->method('getMode')->willReturn(State::MODE_PRODUCTION);
@@ -90,21 +72,6 @@ public function testNotLockProcessInProductionMode()
9072
$this->lockerProcess->lockProcess(self::LOCK_NAME);
9173
}
9274

93-
/**
94-
* Test for unlockProcess method
95-
*/
96-
public function testUnlockProcess()
97-
{
98-
$this->stateMock->expects(self::exactly(2))->method('getMode')->willReturn(State::MODE_DEVELOPER);
99-
$this->filesystemMock->expects(self::once())
100-
->method('getDirectoryWrite')
101-
->with(DirectoryList::VAR_DIR)
102-
->willReturn($this->getTmpDirectoryMockFalse(1));
103-
104-
$this->lockerProcess->lockProcess(self::LOCK_NAME);
105-
$this->lockerProcess->unlockProcess();
106-
}
107-
10875
public function testNotUnlockProcessInProductionMode()
10976
{
11077
$this->stateMock->expects(self::exactly(2))->method('getMode')->willReturn(State::MODE_PRODUCTION);
@@ -114,17 +81,6 @@ public function testNotUnlockProcessInProductionMode()
11481
$this->lockerProcess->unlockProcess();
11582
}
11683

117-
/**
118-
* @return array
119-
*/
120-
public function dataProviderTestLockProcess()
121-
{
122-
return [
123-
['method' => 'getTmpDirectoryMockTrue'],
124-
['method' => 'getTmpDirectoryMockFalse']
125-
];
126-
}
127-
12884
/**
12985
* @return WriteInterface|\PHPUnit_Framework_MockObject_MockObject
13086
*/

0 commit comments

Comments
 (0)