Unverified Commit 5d8c1f49 authored by alexpott's avatar alexpott

Issue #2974657 by leolando.tan, spitzialist, borisson_, neclimdul, alexpott:...

Issue #2974657 by leolando.tan, spitzialist, borisson_, neclimdul, alexpott: Improve FilterIdTest provider keys
parent 35a2e489
...@@ -87,31 +87,25 @@ public function testTransform($value, $expected_value, $invalid_id = NULL) { ...@@ -87,31 +87,25 @@ public function testTransform($value, $expected_value, $invalid_id = NULL) {
*/ */
public function provideFilters() { public function provideFilters() {
return [ return [
// The filter ID is mapped, and the plugin exists. 'filter ID mapped to plugin that exists' => [
[
'foo', 'foo',
'filter_html', 'filter_html',
], ],
// The filter ID isn't mapped, but it's unchanged from the source (i.e., 'filter ID not mapped but unchanged from the source and the plugin exists' => [
// it bypasses the static map) and the plugin exists.
[
'filter_html', 'filter_html',
'filter_html', 'filter_html',
], ],
// The filter ID is mapped, but the plugin does not exist. 'filter ID mapped to plugin that does not exist' => [
[
'baz', 'baz',
'filter_null', 'filter_null',
'php_code', 'php_code',
], ],
// The filter ID isn't mapped, but it's unchanged from the source (i.e., 'filter ID not mapped but unchanged from the source and the plugin does not exist' => [
// it bypasses the static map) but the plugin does not exist.
[
'php_code', 'php_code',
'filter_null', 'filter_null',
'php_code', 'php_code',
], ],
[ 'filter ID set and the plugin does not exist' => [
['filter', 1], ['filter', 1],
'filter_null', 'filter_null',
'filter:1', 'filter:1',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment