From 5f45dd20d22b325cf12df1a277ed4e3d52f462e1 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Fri, 13 May 2011 01:43:35 -0430 Subject: [PATCH] Updating behaviors tests --- lib/Cake/tests/Case/Model/BehaviorCollectionTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php b/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php index 907b127c5..749b027f3 100644 --- a/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php +++ b/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php @@ -454,12 +454,14 @@ class BehaviorCollectionTest extends CakeTestCase { $this->assertEquals($Apple->Behaviors->dispatchMethod($Apple, 'testMethod'), 'working'); App::build(array('plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS))); + CakePlugin::load('TestPlugin'); $this->assertTrue($Apple->Behaviors->load('SomeOther', array('className' => 'TestPlugin.TestPluginPersisterOne'))); $this->assertInstanceOf('TestPluginPersisterOneBehavior', $Apple->Behaviors->SomeOther); $result = $Apple->Behaviors->attached(); $this->assertEquals(array('Test', 'SomeOther'), $result, 'attached() results are wrong.'); App::build(); + CakePlugin::unload(); } /**