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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user