41 lines
1,012 B
PHP
41 lines
1,012 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
|
|
require_once dirname(__FILE__, 5) . '/test/lib/test.class.php';
|
|
|
|
class epicModelTest extends baseTest
|
|
{
|
|
protected $moduleName = 'epic';
|
|
protected $className = 'model';
|
|
|
|
/**
|
|
* Test getToAndCcList method.
|
|
*
|
|
* @param object $story 故事对象
|
|
* @param string $actionType 操作类型
|
|
* @access public
|
|
* @return mixed
|
|
*/
|
|
public function getToAndCcListTest($story, $actionType)
|
|
{
|
|
$result = $this->invokeArgs('getToAndCcList', [$story, $actionType]);
|
|
if(dao::isError()) return dao::getError();
|
|
return $result;
|
|
}
|
|
|
|
/**
|
|
* Test isClickable method.
|
|
*
|
|
* @param object $data
|
|
* @param string $action
|
|
* @access public
|
|
* @return mixed
|
|
*/
|
|
public function isClickableTest($data = null, $action = '')
|
|
{
|
|
$result = $this->invokeArgs('isClickable', [$data, $action]);
|
|
if(dao::isError()) return dao::getError();
|
|
return $result;
|
|
}
|
|
}
|