src/system/SecurityCenterModule/Tests/Api/HtmlFilterApiTest.php 1 location
|
@@ 49-55 (lines=7) @@
|
| 46 |
|
$this->assertEquals($exptectedOff, $api->filter($string)); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function stringProvider() |
| 50 |
|
{ |
| 51 |
|
return [ |
| 52 |
|
['"foo" and \'bar\' <foo>', '"foo" and \'bar\' <foo>', '"foo" and \'bar\' <foo>'], |
| 53 |
|
['foo &xyz;bar', 'foo &xyz;bar', 'foo &amp;xyz;bar'], // `&` is converted then converted back |
| 54 |
|
]; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public function testSubscriber() |
| 58 |
|
{ |
src/system/ThemeModule/Tests/Api/PageAssetApiTest.php 1 location
|
@@ 51-58 (lines=8) @@
|
| 48 |
|
$this->api->add($type, $value); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
public function exceptionDataProvider() |
| 52 |
|
{ |
| 53 |
|
return [ |
| 54 |
|
['foo', 'bar'], |
| 55 |
|
['', 'bar'], |
| 56 |
|
['foo', ''], |
| 57 |
|
]; |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
|