* Modify unit test of tutorialModel::getExecutionPairs.
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
su('admin');
|
||||
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
|
||||
title=测试 tutorialModel->getExecutionPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
检查获取的数据信息 >> Test execution
|
||||
- 检查获取的数据信息属性3 @Test execution
|
||||
|
||||
*/
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
r($tutorial->getExecutionPairsTest()) && p('3') && e('Test execution'); //检查获取的数据信息
|
||||
r($tutorial->getExecutionPairsTest()) && p('3') && e('Test execution'); //检查获取的数据信息
|
||||
|
||||
@@ -147,18 +147,15 @@ class tutorialTest
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tutorial Execution pairs.
|
||||
* 测试获取新手模式执行键值对。
|
||||
* Test get tutorial Execution pairs.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function getExecutionPairsTest()
|
||||
public function getExecutionPairsTest(): array
|
||||
{
|
||||
$objects = $this->objectModel->getExecutionPairs();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
return $this->objectModel->getExecutionPairs();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user