| @@ 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 | ||
| @@ 182-191 (lines=10) @@ | ||
| 179 | $this->assertSame($expected, $result); | |
| 180 | } | |
| 181 | ||
| 182 | public function testGetAssets() | |
| 183 |     { | |
| 184 | $expected = array( | |
| 185 | 'base_path' => '/debugbar/javascript', | |
| 186 | 'base_url' => 'debugbar/javascript', | |
| 187 | 'css' => array(), | |
| 188 | 'js' => 'widgets.js', | |
| 189 | ); | |
| 190 | $this->assertSame($expected, $this->collector->getAssets()); | |
| 191 | } | |
| 192 | } | |
| 193 | ||