* Test getNoMergedProductCount funciton.
This commit is contained in:
+23
@@ -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'); //获取没有项目集的产品数量
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user