@@ -86,7 +86,6 @@ protected function setUp()
86
86
87
87
/**
88
88
* @throws \Magento\Framework\Exception\AlreadyExistsException
89
- * @throws \Magento\Framework\Exception\InputException
90
89
* @throws \Zend_Db_Statement_Exception
91
90
*/
92
91
public function testLock ()
@@ -104,22 +103,23 @@ public function testLock()
104
103
105
104
/**
106
105
* @throws \Magento\Framework\Exception\AlreadyExistsException
107
- * @throws \Magento\Framework\Exception\InputException
108
106
* @throws \Zend_Db_Statement_Exception
109
- * @expectedException \Magento\Framework\Exception\InputException
110
107
*/
111
108
public function testlockWithTooLongName ()
112
109
{
113
110
$ this ->deploymentConfig
114
111
->method ('isDbAvailable ' )
115
112
->with ()
116
113
->willReturn (true );
117
- $ this ->database ->lock ('BbXbyf9rIY5xuAVdviQJmh76FyoeeVHTDpcjmcImNtgpO4Hnz4xk76ZGEyYALvrQu ' );
114
+ $ this ->statement ->expects ($ this ->once ())
115
+ ->method ('fetchColumn ' )
116
+ ->willReturn (true );
117
+
118
+ $ this ->assertTrue ($ this ->database ->lock ('BbXbyf9rIY5xuAVdviQJmh76FyoeeVHTDpcjmcImNtgpO4Hnz4xk76ZGEyYALvrQu ' ));
118
119
}
119
120
120
121
/**
121
122
* @throws \Magento\Framework\Exception\AlreadyExistsException
122
- * @throws \Magento\Framework\Exception\InputException
123
123
* @throws \Zend_Db_Statement_Exception
124
124
* @expectedException \Magento\Framework\Exception\AlreadyExistsException
125
125
*/
@@ -139,7 +139,6 @@ public function testlockWithAlreadyAcquiredLockInSameSession()
139
139
140
140
/**
141
141
* @throws \Magento\Framework\Exception\AlreadyExistsException
142
- * @throws \Magento\Framework\Exception\InputException
143
142
* @throws \Zend_Db_Statement_Exception
144
143
*/
145
144
public function testLockWithUnavailableDeploymentConfig ()
@@ -153,7 +152,6 @@ public function testLockWithUnavailableDeploymentConfig()
153
152
}
154
153
155
154
/**
156
- * @throws \Magento\Framework\Exception\InputException
157
155
* @throws \Zend_Db_Statement_Exception
158
156
*/
159
157
public function testUnlockWithUnavailableDeploymentConfig ()
@@ -167,7 +165,6 @@ public function testUnlockWithUnavailableDeploymentConfig()
167
165
}
168
166
169
167
/**
170
- * @throws \Magento\Framework\Exception\InputException
171
168
* @throws \Zend_Db_Statement_Exception
172
169
*/
173
170
public function testIsLockedWithUnavailableDB ()
0 commit comments