mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
GraphChartTest: match current implementation
We have more nodes right now as of a graphical hack (white bg)
This commit is contained in:
parent
34417338dd
commit
4513ab2aed
@ -27,7 +27,7 @@ class GraphChartTest extends BaseTestCase
|
|||||||
$xpath = new DOMXPath($doc);
|
$xpath = new DOMXPath($doc);
|
||||||
$xpath->registerNamespace('x', 'http://www.w3.org/2000/svg');
|
$xpath->registerNamespace('x', 'http://www.w3.org/2000/svg');
|
||||||
$path = $xpath->query('//x:rect[@data-icinga-graph-type="bar"]');
|
$path = $xpath->query('//x:rect[@data-icinga-graph-type="bar"]');
|
||||||
$this->assertEquals(3, $path->length, 'Assert the correct number of datapoints being drawn as SVG bars');
|
$this->assertEquals(6, $path->length, 'Assert the correct number of datapoints being drawn as SVG bars');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testLineChartCreation()
|
public function testLineChartCreation()
|
||||||
@ -48,4 +48,4 @@ class GraphChartTest extends BaseTestCase
|
|||||||
$path = $xpath->query('//x:path[@data-icinga-graph-type="line"]');
|
$path = $xpath->query('//x:path[@data-icinga-graph-type="line"]');
|
||||||
$this->assertEquals(1, $path->length, 'Assert the correct number of datapoints being drawn as SVG lines');
|
$this->assertEquals(1, $path->length, 'Assert the correct number of datapoints being drawn as SVG lines');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user