Skip to content

Commit

Permalink
Updating behaviors tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 13, 2011
1 parent 35dc825 commit 5f45dd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/tests/Case/Model/BehaviorCollectionTest.php
Expand Up @@ -454,12 +454,14 @@ function testLoadAlias() {
$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();
}

/**
Expand Down

0 comments on commit 5f45dd2

Please sign in to comment.