mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 18:44:26 +02:00
40 lines
733 B
PHP
40 lines
733 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Core\Lock\Type\DatabaseLock;
|
|
use Friendica\Test\LockTestCase;
|
|
use Friendica\Test\Util\CreateDatabaseTrait;
|
|
|
|
class DatabaseLockDriverTest extends LockTestCase
|
|
{
|
|
use CreateDatabaseTrait;
|
|
|
|
protected $pid = 123;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
$this->setUpVfsDir();
|
|
|
|
$this->setUpDb();
|
|
|
|
parent::setUp();
|
|
}
|
|
|
|
protected function getInstance()
|
|
{
|
|
return new DatabaseLock($this->getDbInstance(), $this->pid);
|
|
}
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
parent::tearDown();
|
|
|
|
$this->tearDownDb();
|
|
}
|
|
}
|