Skip to content

Commit

Permalink
Fixes unit tests
Browse files Browse the repository at this point in the history
Further to previous commit moved Cms\Classes\ViewBag to components directory
  • Loading branch information
daftspunk committed Mar 15, 2017
1 parent 51ac144 commit 5e1feb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/cms/classes/CmsCompoundObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function testGetViewBagPopulated()
$properties = $viewBag->getProperties();
$this->assertCount(1, $properties);
$this->assertEquals($obj->viewBag, $properties);
$this->assertInstanceOf('Cms\Classes\ViewBag', $viewBag);
$this->assertInstanceOf('Cms\Components\ViewBag', $viewBag);
$this->assertArrayHasKey('title', $properties);
$this->assertEquals('Toxicity', $properties['title']);
}
Expand All @@ -281,7 +281,7 @@ public function testGetViewBagEmpty()
$obj = TestParsedCmsCompoundObject::load($theme, 'compound.htm');

$viewBag = $obj->getViewBag();
$this->assertInstanceOf('Cms\Classes\ViewBag', $viewBag);
$this->assertInstanceOf('Cms\Components\ViewBag', $viewBag);
$properties = $viewBag->getProperties();
$this->assertEmpty($properties);
$this->assertEquals($obj->viewBag, $properties);
Expand Down

0 comments on commit 5e1feb5

Please sign in to comment.