@@ -64,24 +64,6 @@ protected function setUp()
64
64
);
65
65
}
66
66
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
-
85
67
public function testNotLockProcessInProductionMode ()
86
68
{
87
69
$ this ->stateMock ->expects (self ::once ())->method ('getMode ' )->willReturn (State::MODE_PRODUCTION );
@@ -90,21 +72,6 @@ public function testNotLockProcessInProductionMode()
90
72
$ this ->lockerProcess ->lockProcess (self ::LOCK_NAME );
91
73
}
92
74
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
-
108
75
public function testNotUnlockProcessInProductionMode ()
109
76
{
110
77
$ this ->stateMock ->expects (self ::exactly (2 ))->method ('getMode ' )->willReturn (State::MODE_PRODUCTION );
@@ -114,17 +81,6 @@ public function testNotUnlockProcessInProductionMode()
114
81
$ this ->lockerProcess ->unlockProcess ();
115
82
}
116
83
117
- /**
118
- * @return array
119
- */
120
- public function dataProviderTestLockProcess ()
121
- {
122
- return [
123
- ['method ' => 'getTmpDirectoryMockTrue ' ],
124
- ['method ' => 'getTmpDirectoryMockFalse ' ]
125
- ];
126
- }
127
-
128
84
/**
129
85
* @return WriteInterface|\PHPUnit_Framework_MockObject_MockObject
130
86
*/
0 commit comments