From add0bd5005321e612d45b121bd7e425ecb6518b5 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 30 Aug 2014 16:18:21 +0200 Subject: [PATCH] Fixing tests related to StaticConfigTrait --- tests/TestCase/Cache/CacheTest.php | 4 ++-- tests/TestCase/Datasource/ConnectionManagerTest.php | 2 +- tests/TestCase/Log/LogTest.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestCase/Cache/CacheTest.php b/tests/TestCase/Cache/CacheTest.php index 29e3230d092..b52dc45afbc 100644 --- a/tests/TestCase/Cache/CacheTest.php +++ b/tests/TestCase/Cache/CacheTest.php @@ -193,7 +193,7 @@ public function testConfigInvalidEngine() { /** * 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 @@ public function testConfigInvalidObject() { /** * Ensure you cannot reconfigure a cache adapter. * - * @expectedException \Cake\Core\Exception\Exception + * @expectedException BadMethodCallException * @return void */ public function testConfigErrorOnReconfigure() { diff --git a/tests/TestCase/Datasource/ConnectionManagerTest.php b/tests/TestCase/Datasource/ConnectionManagerTest.php index e6729e606ca..7bfdfb5703e 100644 --- a/tests/TestCase/Datasource/ConnectionManagerTest.php +++ b/tests/TestCase/Datasource/ConnectionManagerTest.php @@ -83,7 +83,7 @@ public function testConfigInvalidOptions() { /** * Test for errors on duplicate config. * - * @expectedException \Cake\Core\Exception\Exception + * @expectedException BadMethodCallException * @expectedExceptionMessage Cannot reconfigure existing key "test_variant" * @return void */ diff --git a/tests/TestCase/Log/LogTest.php b/tests/TestCase/Log/LogTest.php index 641505c9d25..914288d4e6c 100644 --- a/tests/TestCase/Log/LogTest.php +++ b/tests/TestCase/Log/LogTest.php @@ -195,7 +195,7 @@ public function testConfigRead() { /** * Ensure you cannot reconfigure a log adapter. * - * @expectedException \Cake\Core\Exception\Exception + * @expectedException BadMethodCallException * @return void */ public function testConfigErrorOnReconfigure() {