|
@@ 81-91 (lines=11) @@
|
| 78 |
|
$this->assertSame($allCollectors, $this->mainCollector->getAllCollectors()); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
public function testGetToolbarTemplateNothing() |
| 82 |
|
{ |
| 83 |
|
$collector = $this->getDataCollectorMock(); |
| 84 |
|
$name = 'foobar'; |
| 85 |
|
$collector |
| 86 |
|
->expects($this->once()) |
| 87 |
|
->method('getName') |
| 88 |
|
->will($this->returnValue($name)); |
| 89 |
|
$this->mainCollector->addCollector($collector); |
| 90 |
|
$this->assertNull($this->mainCollector->getToolbarTemplate($name)); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
public function testGetToolbarTemplate() |
| 94 |
|
{ |
|
@@ 107-117 (lines=11) @@
|
| 104 |
|
$this->assertSame($toolbarTemplate, $this->mainCollector->getToolbarTemplate($name)); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function testGetPanelTemplateNothing() |
| 108 |
|
{ |
| 109 |
|
$collector = $this->getDataCollectorMock(); |
| 110 |
|
$name = 'foobar'; |
| 111 |
|
$collector |
| 112 |
|
->expects($this->once()) |
| 113 |
|
->method('getName') |
| 114 |
|
->will($this->returnValue($name)); |
| 115 |
|
$this->mainCollector->addCollector($collector); |
| 116 |
|
$this->assertNull($this->mainCollector->getPanelTemplate($name)); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public function testGetPanelTemplate() |
| 120 |
|
{ |