mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Moving View group over to PHPUnit style group test.
This commit is contained in:
parent
7c694bf560
commit
129098e16c
1 changed files with 8 additions and 14 deletions
|
@ -26,24 +26,18 @@
|
|||
* @package cake
|
||||
* @subpackage cake.tests.groups
|
||||
*/
|
||||
class ViewsGroupTest extends TestSuite {
|
||||
class AllViewsTest extends PHPUnit_Framework_TestSuite {
|
||||
|
||||
/**
|
||||
* label property
|
||||
* suite method, defines tests for this suite.
|
||||
*
|
||||
* @var string 'All core views'
|
||||
* @access public
|
||||
*/
|
||||
public $label = 'View and ThemeView';
|
||||
|
||||
/**
|
||||
* ViewsGroupTest method
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function ViewsGroupTest() {
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'view');
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'theme');
|
||||
public static function suite() {
|
||||
$suite = new PHPUnit_Framework_TestSuite('All View class tests');
|
||||
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'view.test.php');
|
||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'theme.test.php');
|
||||
return $suite;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue