mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-03 19:28:41 +00:00
test fixes
This commit is contained in:
parent
b53973157d
commit
a8ebed1d3b
|
|
@ -207,6 +207,8 @@ final class MemCached extends ConnectionAbstract
|
||||||
$keys = $this->con->getAllKeys();
|
$keys = $this->con->getAllKeys();
|
||||||
$values = [];
|
$values = [];
|
||||||
|
|
||||||
|
var_dump($keys);
|
||||||
|
|
||||||
foreach ($keys as $key) {
|
foreach ($keys as $key) {
|
||||||
if (\preg_match('/' . $pattern . '/', $key) === 1) {
|
if (\preg_match('/' . $pattern . '/', $key) === 1) {
|
||||||
$result = $this->con->get($key);
|
$result = $this->con->get($key);
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,8 @@ class StatusAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
protected function setUp() : void
|
protected function setUp() : void
|
||||||
{
|
{
|
||||||
$this->status = new class() extends StatusAbstract {
|
$this->status = new class() extends StatusAbstract
|
||||||
|
{
|
||||||
public const PATH = __DIR__ . '/Invalid';
|
public const PATH = __DIR__ . '/Invalid';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,19 @@ class StatusAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
$this->status = new class() extends StatusAbstract
|
$this->status = new class() extends StatusAbstract
|
||||||
{
|
{
|
||||||
|
public const PATH = __DIR__ . '/../../../Modules/Invalid';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers phpOMS\Module\StatusAbstract
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testInvalidModulePathActivation() : void
|
||||||
|
{
|
||||||
|
$this->status::activateRoutes();
|
||||||
|
$this->status::activateHooks();
|
||||||
|
|
||||||
|
self::assertFalse(\is_dir(__DIR__ . '/../../../Modules/Invalid'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user