diff --git a/test/class/my.class.php b/test/class/my.class.php new file mode 100644 index 0000000000..0a42cf82a3 --- /dev/null +++ b/test/class/my.class.php @@ -0,0 +1,85 @@ +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; + } +}