|
@@ 93-105 (lines=13) @@
|
| 90 |
|
$this->assertNull($this->mainCollector->getToolbarTemplate($name)); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
public function testGetToolbarTemplate() |
| 94 |
|
{ |
| 95 |
|
$collector = $this->getDataCollectorMock(); |
| 96 |
|
$name = 'foobar'; |
| 97 |
|
$collector |
| 98 |
|
->expects($this->once()) |
| 99 |
|
->method('getName') |
| 100 |
|
->will($this->returnValue($name)); |
| 101 |
|
$toolbarTemplate = 'toolbar.html.twig'; |
| 102 |
|
|
| 103 |
|
$this->mainCollector->addCollector($collector, 'foo', $toolbarTemplate); |
| 104 |
|
$this->assertSame($toolbarTemplate, $this->mainCollector->getToolbarTemplate($name)); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function testGetPanelTemplateNothing() |
| 108 |
|
{ |
|
@@ 119-131 (lines=13) @@
|
| 116 |
|
$this->assertNull($this->mainCollector->getPanelTemplate($name)); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public function testGetPanelTemplate() |
| 120 |
|
{ |
| 121 |
|
$collector = $this->getDataCollectorMock(); |
| 122 |
|
$name = 'foobar'; |
| 123 |
|
$collector |
| 124 |
|
->expects($this->once()) |
| 125 |
|
->method('getName') |
| 126 |
|
->will($this->returnValue($name)); |
| 127 |
|
$panelTemplate = 'toolbar.html.twig'; |
| 128 |
|
|
| 129 |
|
$this->mainCollector->addCollector($collector, $panelTemplate, 'foo'); |
| 130 |
|
$this->assertSame($panelTemplate, $this->mainCollector->getPanelTemplate($name)); |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
public function testCollect() |
| 134 |
|
{ |