add test by my
This commit is contained in:
85
test/class/my.class.php
Normal file
85
test/class/my.class.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
class myTest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
global $tester;
|
||||
$this->objectModel = $tester->loadModel('my');
|
||||
}
|
||||
|
||||
/**
|
||||
* Function getProducts test by my
|
||||
*
|
||||
* @param string $type
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getProductsTest($type)
|
||||
{
|
||||
$objects = $this->objectModel->getProducts($type);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function getDoingProjects test by my
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getDoingProjectsTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDoingProjects();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function getOverview test by my
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getOverviewTest()
|
||||
{
|
||||
$objects = $this->objectModel->getOverview();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function getContribute test by my
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getContributeTest()
|
||||
{
|
||||
$objects = $this->objectModel->getContribute();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function getActions test by my
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getActionsTest()
|
||||
{
|
||||
$objects = $this->objectModel->getActions();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user