Skip to content
Permalink
Browse files

Fix failing tests in AppTest.

  • Loading branch information...
markstory committed Dec 17, 2013
1 parent a1d38c8 commit c0f4f1cb2778bbb104464af52989342eb48b68cc
Showing with 7 additions and 7 deletions.
  1. +7 −7 Cake/Test/TestCase/Core/AppTest.php
@@ -173,8 +173,8 @@ public function testListObjects() {
$result = App::objects('View/Helper', null, false);
$this->assertContains('BananaHelper', $result);
$result = App::objects('Model', null, false);
$this->assertContains('Article', $result);
$result = App::objects('Model/Repository', null, false);
$this->assertContains('ArticlesTable', $result);
$result = App::objects('file');
$this->assertFalse($result);
@@ -214,8 +214,8 @@ public function testListObjectsIgnoreDotDirectories() {
public function testListObjectsInPlugin() {
Plugin::load(array('TestPlugin', 'TestPluginTwo'));
$result = App::objects('TestPlugin.Model');
$this->assertTrue(in_array('TestPluginPost', $result));
$result = App::objects('TestPlugin.Model/Repository');
$this->assertContains('TestPluginCommentsTable', $result);
$result = App::objects('TestPlugin.Model/Behavior');
$this->assertTrue(in_array('PersisterOneBehavior', $result));
@@ -230,9 +230,9 @@ public function testListObjectsInPlugin() {
$result = App::objects('TestPluginTwo.Model/Behavior');
$this->assertSame(array(), $result);
$result = App::objects('Model', null, false);
$this->assertTrue(in_array('Comment', $result));
$this->assertTrue(in_array('Post', $result));
$result = App::objects('Model/Repository', null, false);
$this->assertContains('PostsTable', $result);
$this->assertContains('ArticlesTable', $result);
}
/**

0 comments on commit c0f4f1c

Please sign in to comment.
You can’t perform that action at this time.