| @@ 75-85 (lines=11) @@ | ||
| 72 | $this->assertSame($expected, $this->collector->getWidgets()); |
|
| 73 | } |
|
| 74 | ||
| 75 | public function testGetAssets() |
|
| 76 | { |
|
| 77 | $expected = array( |
|
| 78 | 'base_path' => '/debugbar/javascript', |
|
| 79 | 'base_url' => 'debugbar/javascript', |
|
| 80 | 'css' => 'sqlqueries/widget.css', |
|
| 81 | 'js' => 'sqlqueries/widget.js' |
|
| 82 | ); |
|
| 83 | ||
| 84 | $this->assertSame($expected, $this->collector->getAssets()); |
|
| 85 | } |
|
| 86 | } |
|
| 87 | ||
| @@ 152-161 (lines=10) @@ | ||
| 149 | $this->assertSame($expected, $result); |
|
| 150 | } |
|
| 151 | ||
| 152 | public function testGetAssets() |
|
| 153 | { |
|
| 154 | $expected = array( |
|
| 155 | 'base_path' => '/debugbar/javascript', |
|
| 156 | 'base_url' => 'debugbar/javascript', |
|
| 157 | 'css' => array(), |
|
| 158 | 'js' => 'widgets.js', |
|
| 159 | ); |
|
| 160 | $this->assertSame($expected, $this->collector->getAssets()); |
|
| 161 | } |
|
| 162 | ||
| 163 | /** |
|
| 164 | * Test that a message is returned when templates are cached. For retrieval of template info, see |
|