* Add user auto test.

This commit is contained in:
sgm0422
2022-03-17 17:30:47 +08:00
parent 44395a2ef5
commit ab5db10f05
12 changed files with 446 additions and 8 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/user.class.php';
su('admin');
/**
title=userModel->updateProgramViewTest();
cid=1
pid=1
*/
$user = new userTest();
$programIdList = array('1', '2');
a($user->grantUserViewTest('user10'));
a($user->updateProgramViewTest('', array('user10')));
die;
r() && p() && e(''); //
system("./ztest init");