Files

44 lines
911 B
PHP
Raw Permalink Normal View History

<?php
/**
* Smarty PHPunit tests for cache resource mysql
*
2023-08-08 00:04:14 +02:00
* @author Uwe Tews
*/
if (MysqlCacheEnable == true) {
include_once __DIR__ . '/../_shared/CacheResourceTestCommon.php';
/**
* class for cache resource file tests
*
2023-08-08 00:04:14 +02:00
*
* @preserveGlobalState disabled
2023-08-08 00:04:14 +02:00
*
*/
class CacheResourceCustomMysqlTest extends CacheResourceTestCommon
{
public function setUp()
{
if (MysqlCacheEnable != true) {
$this->markTestSkipped('mysql tests are disabled');
}
if (self::$init) {
$this->getConnection();
}
$this->setUpSmarty(__DIR__);
parent::setUp();
$this->smarty->setCachingType('mysqltest');
}
public function testInit()
{
$this->cleanDirs();
$this->initMysqlCache();
}
}
}