1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Rewrite e_file_inspector implementation: Use SQLite phar

This commit is contained in:
Nick Liu
2020-03-21 19:27:59 -05:00
parent 84081c3d3d
commit 0e7ad8a1b0
6 changed files with 167 additions and 95 deletions

View File

@@ -10,14 +10,14 @@
class e_file_inspectorTest extends \Codeception\Test\Unit
{
/**
* @var e_file_inspector_json
* @var e_file_inspector_sqlphar
*/
private $e_integrity;
public function _before()
{
require_once(e_HANDLER."e_file_inspector_json.php");
$this->e_integrity = new e_file_inspector_json();
require_once(e_HANDLER."e_file_inspector_sqlphar.php");
$this->e_integrity = new e_file_inspector_sqlphar();
}
public function testGetChecksums()
@@ -30,4 +30,12 @@ class e_file_inspectorTest extends \Codeception\Test\Unit
$this->assertIsArray($checksums);
$this->assertEmpty($checksums);
}
public function testGetCurrentVersion()
{
$actualVersion = $this->e_integrity->getCurrentVersion();
$this->assertIsString($actualVersion);
$this->assertNotEmpty($actualVersion);
}
}