Skip to content

Commit be593cd

Browse files
committed
Fix Unit Tests
1 parent f4cef90 commit be593cd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/internal/Magento/Framework/Lock/Test/Unit/Backend/DatabaseTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ protected function setUp()
8585
}
8686

8787
/**
88-
* @throws \Magento\Framework\Exception\AlreadyExistsException
8988
* @throws \Zend_Db_Statement_Exception
9089
*/
9190
public function testLock()
@@ -102,7 +101,6 @@ public function testLock()
102101
}
103102

104103
/**
105-
* @throws \Magento\Framework\Exception\AlreadyExistsException
106104
* @throws \Zend_Db_Statement_Exception
107105
*/
108106
public function testlockWithTooLongName()
@@ -119,9 +117,7 @@ public function testlockWithTooLongName()
119117
}
120118

121119
/**
122-
* @throws \Magento\Framework\Exception\AlreadyExistsException
123120
* @throws \Zend_Db_Statement_Exception
124-
* @expectedException \Magento\Framework\Exception\AlreadyExistsException
125121
*/
126122
public function testlockWithAlreadyAcquiredLockInSameSession()
127123
{
@@ -133,12 +129,11 @@ public function testlockWithAlreadyAcquiredLockInSameSession()
133129
->method('fetchColumn')
134130
->willReturn(true);
135131

136-
$this->database->lock('testLock');
137-
$this->database->lock('differentLock');
132+
$this->assertTrue($this->database->lock('testLock'));
133+
$this->assertFalse($this->database->lock('differentLock'));
138134
}
139135

140136
/**
141-
* @throws \Magento\Framework\Exception\AlreadyExistsException
142137
* @throws \Zend_Db_Statement_Exception
143138
*/
144139
public function testLockWithUnavailableDeploymentConfig()

0 commit comments

Comments
 (0)