Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix failing tests. test and mocked sources would cause exceptions

  • Loading branch information...
commit 8374eb92cc9445d91102751b7e730804f2886071 1 parent dde0912
@ceeram ceeram authored
View
1  lib/Cake/Model/ConnectionManager.php
@@ -78,7 +78,6 @@ protected static function _init() {
*
* @param string $name The name of the DataSource, as defined in app/Config/database.php
* @return DataSource Instance
- * @throws MissingDatasourceConfigException
* @throws MissingDatasourceException
*/
public static function getDataSource($name) {
View
3  lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
@@ -21,6 +21,9 @@
App::uses('AppModel', 'Model');
App::uses('DataSource', 'Model/Datasource');
App::uses('DboSource', 'Model/Datasource');
+App::uses('DboTestSource', 'Model/Datasource');
+App::uses('DboSecondTestSource', 'Model/Datasource');
+App::uses('MockDataSource', 'Model/Datasource');
require_once dirname(dirname(__FILE__)) . DS . 'models.php';
class MockPDO extends PDO {
View
1  lib/Cake/Test/Case/Model/ModelIntegrationTest.php
@@ -20,6 +20,7 @@
require_once dirname(__FILE__) . DS . 'ModelTestBase.php';
App::uses('DboSource', 'Model/Datasource');
+App::uses('DboMock', 'Model/Datasource');
/**
* DboMock class
View
5 lib/Cake/Test/Case/Model/ModelWriteTest.php
@@ -17,6 +17,11 @@
* @since CakePHP(tm) v 1.2.0.4206
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+App::uses('MockTransactionDboSource', 'Model/Datasource');
+App::uses('MockTransactionAssociatedDboSource', 'Model/Datasource');
+App::uses('MockManyTransactionDboSource', 'Model/Datasource');
+App::uses('MockAssociatedTransactionDboSource', 'Model/Datasource');
+
require_once dirname(__FILE__) . DS . 'ModelTestBase.php';
/**
* ModelWriteTest
Please sign in to comment.
Something went wrong with that request. Please try again.