public static function UrlHelperTest::providerTestFilterQueryParameters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::providerTestFilterQueryParameters()
Provides data to self::testFilterQueryParameters().
Return value
array
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php, line 219 - Contains \Drupal\Tests\Component\Utility\UrlHelperTest.
Class
- UrlHelperTest
- @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
public static function providerTestFilterQueryParameters() {
return array(
// Test without an exclude filter.
array(
'query' => array(
'a' => array(
'b' => 'c',
),
),
'exclude' => array(),
'expected' => array(
'a' => array(
'b' => 'c',
),
),
),
// Exclude the 'b' element.
array(
'query' => array(
'a' => array(
'b' => 'c',
'd' => 'e',
),
),
'exclude' => array(
'a[b]',
),
'expected' => array(
'a' => array(
'd' => 'e',
),
),
),
);
}