File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
dev/tests/integration/testsuite/Magento/Framework/Lock/Backend
lib/internal/Magento/Framework/Lock Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 10
10
/**
11
11
* \Magento\Framework\Lock\Backend\File test case
12
12
*/
13
- class FileTest extends \PHPUnit \Framework \TestCase
13
+ class FileLockTest extends \PHPUnit \Framework \TestCase
14
14
{
15
15
/**
16
- * @var \Magento\Framework\Lock\Backend\File
16
+ * @var \Magento\Framework\Lock\Backend\FileLock
17
17
*/
18
18
private $ model ;
19
19
@@ -25,7 +25,10 @@ class FileTest extends \PHPUnit\Framework\TestCase
25
25
protected function setUp ()
26
26
{
27
27
$ this ->objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
28
- $ this ->model = $ this ->objectManager ->create (\Magento \Framework \Lock \Backend \File::class, ['path ' => '/tmp ' ]);
28
+ $ this ->model = $ this ->objectManager ->create (
29
+ \Magento \Framework \Lock \Backend \FileLock::class,
30
+ ['path ' => '/tmp ' ]
31
+ );
29
32
}
30
33
31
34
public function testLockAndUnlock ()
Original file line number Diff line number Diff line change 16
16
/**
17
17
* LockManager using the file system for locks
18
18
*/
19
- class File implements LockManagerInterface
19
+ class FileLock implements LockManagerInterface
20
20
{
21
21
/**
22
22
* The file driver instance
Original file line number Diff line number Diff line change 14
14
use Magento \Framework \Lock \Backend \Database as DatabaseLock ;
15
15
use Magento \Framework \Lock \Backend \Zookeeper as ZookeeperLock ;
16
16
use Magento \Framework \Lock \Backend \Cache as CacheLock ;
17
- use Magento \Framework \Lock \Backend \File as FileLock ;
17
+ use Magento \Framework \Lock \Backend \FileLock ;
18
18
19
19
/**
20
20
* The factory to create object that implements LockManagerInterface
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \Lock \Backend \Database as DatabaseLock ;
11
11
use Magento \Framework \Lock \Backend \Zookeeper as ZookeeperLock ;
12
12
use Magento \Framework \Lock \Backend \Cache as CacheLock ;
13
- use Magento \Framework \Lock \Backend \File as FileLock ;
13
+ use Magento \Framework \Lock \Backend \FileLock ;
14
14
use Magento \Framework \Lock \LockBackendFactory ;
15
15
use Magento \Framework \ObjectManagerInterface ;
16
16
use Magento \Framework \Lock \LockManagerInterface ;
You can’t perform that action at this time.
0 commit comments