Skip to content

Commit

Permalink
PaginationGenerator test for #315 complete
Browse files Browse the repository at this point in the history
  • Loading branch information
carbontwelve committed Sep 20, 2018
1 parent ad88064 commit 35f1597
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/Unit/ContentGeneratorsNTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public function testCollectionItemGenerator()
}
}

// @todo add test to check this modifies the graph
public function testPaginationGenerator()
{
try {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35f1597

Please sign in to comment.