From b73200f66f4db97259a122e1713b6fd60446e29b Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Sat, 30 Jan 2016 11:08:48 +0100 Subject: [PATCH] :construction: Testing tests #2 --- tests/unit/Grav/Common/Page/PagesTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/Grav/Common/Page/PagesTest.php b/tests/unit/Grav/Common/Page/PagesTest.php index d675133943..da5f520414 100644 --- a/tests/unit/Grav/Common/Page/PagesTest.php +++ b/tests/unit/Grav/Common/Page/PagesTest.php @@ -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());