File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
lib/internal/Magento/Framework/Lock/Test/Unit/Backend Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ protected function setUp()
85
85
}
86
86
87
87
/**
88
- * @throws \Magento\Framework\Exception\AlreadyExistsException
89
88
* @throws \Zend_Db_Statement_Exception
90
89
*/
91
90
public function testLock ()
@@ -102,7 +101,6 @@ public function testLock()
102
101
}
103
102
104
103
/**
105
- * @throws \Magento\Framework\Exception\AlreadyExistsException
106
104
* @throws \Zend_Db_Statement_Exception
107
105
*/
108
106
public function testlockWithTooLongName ()
@@ -119,9 +117,7 @@ public function testlockWithTooLongName()
119
117
}
120
118
121
119
/**
122
- * @throws \Magento\Framework\Exception\AlreadyExistsException
123
120
* @throws \Zend_Db_Statement_Exception
124
- * @expectedException \Magento\Framework\Exception\AlreadyExistsException
125
121
*/
126
122
public function testlockWithAlreadyAcquiredLockInSameSession ()
127
123
{
@@ -133,12 +129,11 @@ public function testlockWithAlreadyAcquiredLockInSameSession()
133
129
->method ('fetchColumn ' )
134
130
->willReturn (true );
135
131
136
- $ this ->database ->lock ('testLock ' );
137
- $ this ->database ->lock ('differentLock ' );
132
+ $ this ->assertTrue ( $ this -> database ->lock ('testLock ' ) );
133
+ $ this ->assertFalse ( $ this -> database ->lock ('differentLock ' ) );
138
134
}
139
135
140
136
/**
141
- * @throws \Magento\Framework\Exception\AlreadyExistsException
142
137
* @throws \Zend_Db_Statement_Exception
143
138
*/
144
139
public function testLockWithUnavailableDeploymentConfig ()
You can’t perform that action at this time.
0 commit comments