Skip to content

Commit

Permalink
🚧 Testing tests #2
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Jan 30, 2016
1 parent d9a104b commit b73200f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/Grav/Common/Page/PagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ protected function _before()
$locator = $this->grav['locator'];
$locator->addPath('page', '', 'tests/fake/simple-site/user/pages', false);
$this->pages->init();
dump($this->pages->all()->toArray()); exit();

}

public function testAll()
{
$locator = $this->grav['locator'];
$locator->addPath('page', '', 'tests/fake/simple-site/user/pages', false);
$this->pages->init();

$this->assertTrue(is_object($this->pages->all()));
$this->assertTrue(is_array($this->pages->all()->toArray()));
$this->assertInstanceOf('Grav\Common\Page\Page', $this->pages->all()->first());
Expand Down

0 comments on commit b73200f

Please sign in to comment.