Browse Source

Fixing tests related to StaticConfigTrait

Jose Lorenzo Rodriguez 11 years ago
parent
commit
add0bd5005

+ 2 - 2
tests/TestCase/Cache/CacheTest.php

@@ -193,7 +193,7 @@ class CacheTest extends TestCase {
 /**
  * test that trying to configure classes that don't extend CacheEngine fail.
  *
- * @expectedException \Cake\Core\Exception\Exception
+ * @expectedException BadMethodCallException
  * @return void
  */
 	public function testConfigInvalidObject() {
@@ -207,7 +207,7 @@ class CacheTest extends TestCase {
 /**
  * Ensure you cannot reconfigure a cache adapter.
  *
- * @expectedException \Cake\Core\Exception\Exception
+ * @expectedException BadMethodCallException
  * @return void
  */
 	public function testConfigErrorOnReconfigure() {

+ 1 - 1
tests/TestCase/Datasource/ConnectionManagerTest.php

@@ -83,7 +83,7 @@ class ConnectionManagerTest extends TestCase {
 /**
  * Test for errors on duplicate config.
  *
- * @expectedException \Cake\Core\Exception\Exception
+ * @expectedException BadMethodCallException
  * @expectedExceptionMessage Cannot reconfigure existing key "test_variant"
  * @return void
  */

+ 1 - 1
tests/TestCase/Log/LogTest.php

@@ -195,7 +195,7 @@ class LogTest extends TestCase {
 /**
  * Ensure you cannot reconfigure a log adapter.
  *
- * @expectedException \Cake\Core\Exception\Exception
+ * @expectedException BadMethodCallException
  * @return void
  */
 	public function testConfigErrorOnReconfigure() {