+ Move unit test from test directory to each module.
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . "/test/lib/init.php";
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 tutorialModel->getProjectPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
测试是否能拿到数据 >> Test Project
|
||||
|
||||
*/
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
r($tutorial->getProjectPairsTest()) && p('2') && e('Test Project'); //测试是否能拿到数据
|
||||
Reference in New Issue
Block a user