* Test getNoMergedProductCount funciton.

This commit is contained in:
daitingting
2023-12-20 11:24:37 +00:00
parent 90a0a46cf6
commit 4e810e4b94
2 changed files with 35 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
/**
title=测试 upgradeModel->getNoMergedProductCount();
timeout=0
cid=1
- 获取没有项目集的产品数量 @5
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/upgrade.class.php';
$product = zdTable('product');
$product->program->range('0,1');
$product->gen(10);
$upgrade = new upgradeTest();
r($upgrade->getNoMergedProductCountTest()) && p() && e('5'); //获取没有项目集的产品数量
+12
View File
@@ -456,4 +456,16 @@ class upgradeTest
return "count:{$objectCount},lastID:{$lastID},fileID:" . implode(',', $files);
}
/**
* 测试获取没有合并的产品的数量。
* Get no merged product count test.
*
* @access public
* @return int
*/
public function getNoMergedProductCountTest(): int
{
return $this->objectModel->getNoMergedProductCount();
}
}