Browse Source

add missing tests

Ceeram 14 years ago
parent
commit
9c652e6573

+ 4 - 1
lib/Cake/Test/Case/AllDatabaseTest.php

@@ -43,7 +43,10 @@ class AllDatabaseTest extends PHPUnit_Framework_TestSuite {
 			'Datasource' . DS . 'Database' . DS . 'Mysql',
 			'Datasource' . DS . 'Database' . DS . 'Postgres',
 			'Datasource' . DS . 'Database' . DS . 'Sqlite',
-			'Datasource' . DS . 'Database' . DS . 'Sqlserver'
+			'Datasource' . DS . 'Database' . DS . 'Sqlserver',
+			'Datasource' . DS . 'CakeSession',
+			'Datasource' . DS . 'Session' . DS . 'CacheSession',
+			'Datasource' . DS . 'Session' . DS . 'DatabaseSession',
 		);
 		foreach ($tasks as $task) {
 			$suite->addTestFile($path . $task . 'Test.php');

+ 40 - 0
lib/Cake/Test/Case/AllEventTest.php

@@ -0,0 +1,40 @@
+<?php
+/**
+ * AllEventTest file
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link          http://cakephp.org CakePHP(tm) Project
+ * @package       Cake.Test.Case
+ * @since         CakePHP(tm) v 2.0
+ * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+
+/**
+ * AllEventTest class
+ *
+ * This test group will run Event tests.
+ *
+ * @package       Cake.Test.Case
+ */
+class AllEventTest extends PHPUnit_Framework_TestSuite {
+
+/**
+ * suite method, defines tests for this suite.
+ *
+ * @return void
+ */
+	public static function suite() {
+		$suite = new CakeTestSuite('All Event related class tests');
+		$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Event');
+		return $suite;
+	}
+}
+

+ 1 - 0
lib/Cake/Test/Case/AllTestsTest.php

@@ -45,6 +45,7 @@ class AllTests extends PHPUnit_Framework_TestSuite {
 		$suite->addTestFile($path . 'AllControllerTest.php');
 		$suite->addTestFile($path . 'AllDatabaseTest.php');
 		$suite->addTestFile($path . 'AllErrorTest.php');
+		$suite->addTestFile($path . 'AllEventTest.php');
 		$suite->addTestFile($path . 'AllHelpersTest.php');
 		$suite->addTestFile($path . 'AllLogTest.php');
 		$suite->addTestFile($path . 'AllI18nTest.php');