Skip to content

Commit

Permalink
Missed a couple instanceOf asserations
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Crowe committed Sep 25, 2013
1 parent 9a1170c commit 3e05ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Utility/ClassRegistryTest.php
Expand Up @@ -173,7 +173,7 @@ public function testAddModel() {
$this->assertEquals($User, $UserCopy);

$Category = ClassRegistry::init(array('class' => 'RegisterCategory'));
$this->assertTrue('RegisterCategory', $Category);
$this->assertInstanceOf('RegisterCategory', $Category);

$ParentCategory = ClassRegistry::init(array('class' => 'RegisterCategory', 'alias' => 'ParentCategory'));
$this->assertInstanceOf('RegisterCategory', $ParentCategory);
Expand All @@ -198,7 +198,7 @@ public function testClassRegistryFlush() {

$NoArticleTag = ClassRegistry::isKeySet('RegisterArticleTag');
$this->assertFalse($NoArticleTag);
$this->assertTrue('RegisterArticleTag', $ArticleTag);
$this->assertInstanceOf('RegisterArticleTag', $ArticleTag);
}

/**
Expand Down

0 comments on commit 3e05ab8

Please sign in to comment.