* Add switchDB by tests.
This commit is contained in:
Regular → Executable
+5
-1
@@ -10,6 +10,10 @@ title=测试 tutorialModel->checkNovice();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
检查当account是admin的时候的返回值。 >> 0
|
||||
检查当->app->user->modifyPassword是不为空的时候的返回值。 >> 0
|
||||
检查当account是guest的时候的返回值。 >> 0
|
||||
|
||||
*/
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
@@ -17,4 +21,4 @@ $tutorial = new tutorialTest();
|
||||
r($tutorial->checkNoviceTest()) && p() && e('0'); //检查当account是admin的时候的返回值。
|
||||
r($tutorial->checkNoviceTest()) && p() && e('0'); //检查当$this->app->user->modifyPassword是不为空的时候的返回值。
|
||||
su('guest');
|
||||
r($tutorial->checkNoviceTest()) && p() && e('0'); //检查当account是guest的时候的返回值。
|
||||
r($tutorial->checkNoviceTest()) && p() && e('0'); //检查当account是guest的时候的返回值。
|
||||
Reference in New Issue
Block a user