From 35f1597b33872c11dc11270ebef62a80de76907a Mon Sep 17 00:00:00 2001 From: Simon Dann Date: Thu, 20 Sep 2018 20:01:43 +0100 Subject: [PATCH] PaginationGenerator test for #315 complete --- tests/Unit/ContentGeneratorsNTest.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/Unit/ContentGeneratorsNTest.php b/tests/Unit/ContentGeneratorsNTest.php index 8e0cb41..c5913ae 100644 --- a/tests/Unit/ContentGeneratorsNTest.php +++ b/tests/Unit/ContentGeneratorsNTest.php @@ -148,7 +148,6 @@ public function testCollectionItemGenerator() } } - // @todo add test to check this modifies the graph public function testPaginationGenerator() { try { @@ -195,16 +194,14 @@ public function testPaginationGenerator() // // Check Graph is updated with correct dependencies // + $dep = (new Resolver())->resolve($project->getSource('configuration')); + $this->assertCount(35, $dep); - $debug = new Debug($project->getGraph()); - $x = $debug->graphViz('configuration'); - - $x = 1; - + $dep = (new Resolver())->resolve($project->getSource('template_page_1')); + $this->assertCount(6, $dep); // Five pages plus the template itself } catch (\Exception $e) { $this->fail($e); } - //$this->markTestIncomplete('add test to check this modifies the graph'); } // @todo add test to check this modifies the graph