chore(Community Version): move from cloud version

This commit is contained in:
cubic
2022-01-06 14:34:16 +08:00
commit 49473b8511
2762 changed files with 460039 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Repository;
use PHPUnit\Framework\TestCase;
class getObjectsCountTest extends TestCase {
public function setUp()
{
global $CI;
$CI->load->model('Repository_model', 'repositoryModel');
}
public function test_main()
{
global $CI;
$uKey = TESTING_USER_KEY;
$rKey = TESTING_REPOSITORY_KEY;
$result = $CI->repositoryModel->getObjectsCount($rKey, $uKey);
$this->assertGreaterThanOrEqual(0, $result);
}
public function test_main_empty()
{
global $CI;
$result = $CI->repositoryModel->getObjectsCount('', '');
$this->assertFalse($result);
}
}