Code Duplication    Length = 7-7 lines in 2 locations

tests/model/HierarchyTest.php 2 locations

@@ 572-578 (lines=7) @@
569
	 * @param array $nodes Breadcrumb path as array
570
	 * @param String $message
571
	 */
572
	protected function assertTreeContains($html, $nodes, $message = null) {
573
		$parser = new CSSContentParser($html);
574
		$xpath = '/';
575
		foreach($nodes as $node) $xpath .= '/ul/li[@id="' . $node->ID . '"]';
576
		$match = $parser->getByXpath($xpath);
577
		self::assertThat((bool)$match, self::isTrue(), $message);
578
	}
579
580
	/**
581
	 * @param String $html  [description]
@@ 585-591 (lines=7) @@
582
	 * @param array $nodes Breadcrumb path as array
583
	 * @param String $message
584
	 */
585
	protected function assertTreeNotContains($html, $nodes, $message = null) {
586
		$parser = new CSSContentParser($html);
587
		$xpath = '/';
588
		foreach($nodes as $node) $xpath .= '/ul/li[@id="' . $node->ID . '"]';
589
		$match = $parser->getByXpath($xpath);
590
		self::assertThat((bool)$match, self::isFalse(), $message);
591
	}
592
593
	/**
594
	 * Get the HTML class attribute from a node in the sitetree