-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAllPagesTest.php
More file actions
33 lines (30 loc) · 851 Bytes
/
AllPagesTest.php
File metadata and controls
33 lines (30 loc) · 851 Bytes
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
<?php
/**
* Pages All Test Suite
*
* @copyright Copyright 2014, NetCommons Project
* @author Kohei Teraguchi <kteraguchi@commonsnet.org>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
*/
App::uses('NetCommonsTestSuite', 'NetCommons.TestSuite');
/**
* Pages All Test Suite
*
* @author Kohei Teraguchi <kteraguchi@commonsnet.org>
* @package NetCommons\Pages\Test\Case
* @codeCoverageIgnore
*/
class AllPagesTest extends NetCommonsTestSuite {
/**
* suite
*
* @return void
*/
public static function suite() {
$plugin = preg_replace('/^All([\w]+)Test$/', '$1', __CLASS__);
$suite = new NetCommonsTestSuite(sprintf('All %s Plugin tests', $plugin));
$suite->addTestDirectoryRecursive(CakePlugin::path($plugin) . 'Test' . DS . 'Case');
return $suite;
}
}