-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAllUsersTest.php
More file actions
55 lines (51 loc) · 3.36 KB
/
AllUsersTest.php
File metadata and controls
55 lines (51 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* All test suite
*
* @author Noriko Arai <arai@nii.ac.jp>
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
App::uses('NetCommonsTestSuite', 'NetCommons.TestSuite');
/**
* All test suite
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Users\Test\Case
*/
class AllUsersTest extends NetCommonsTestSuite {
/**
* All test suite
*
* @return NetCommonsTestSuite
* @codeCoverageIgnore
*/
public static function suite() {
$plugin = preg_replace('/^All([\w]+)Test$/', '$1', __CLASS__);
$suite = new NetCommonsTestSuite(sprintf('All %s Plugin tests', $plugin));
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/Behavior/UserPermissionBehavior/CanUserEditTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/Behavior/UserPermissionBehavior/CanUserReadTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/Behavior/SaveUserBehavior/PrivateSetInvalidatesTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/Behavior/SaveUserBehavior/GetEmailFieldsTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/Behavior/ImportExportBehavior/ImportUsersTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/User/PrepareTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/User/CreateUserTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/User/ExistsUserTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/User/ProtectedSetUsernameValidateTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Model/User/ProtectedSetPasswordValidateTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Controller/Component/UserSearchCompComponent/StartupTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Controller/UsersController/DownloadTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Controller/UsersController/ViewTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Controller/UsersController/DownloadAvatarTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Console/Command/Task/UserImportTask/GetOptionParserTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Console/Command/Task/UserImportTask/ExecuteTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Console/Command/UsersShell/GetOptionParserTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Console/Command/UsersShell/MainTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Console/Command/UsersShell/StartupTest.php');
//$suite->addTestFile(CakePlugin::path($plugin) . 'Test' . DS . 'Case' . '/Config/RoutesTest.php');
$suite->addTestDirectoryRecursive(CakePlugin::path($plugin) . 'Test' . DS . 'Case');
return $suite;
}
}