public function UuidFilterTest::filterTestProvider in Replication 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Plugin/ReplicationFilter/UuidFilterTest.php \Drupal\Tests\replication\Unit\Plugin\ReplicationFilter\UuidFilterTest::filterTestProvider()
Provide test cases for the "uuids" parameter.
File
- tests/
src/ Unit/ Plugin/ ReplicationFilter/ UuidFilterTest.php, line 46
Class
- UuidFilterTest
- Tests that the uuid filter parses parameters correctly.
Namespace
Drupal\Tests\replication\Unit\Plugin\ReplicationFilterCode
public function filterTestProvider() {
return [
// Test singular parameter values.
[
'123',
[
'123',
],
TRUE,
],
[
'123',
[
'456',
],
FALSE,
],
// Test multiple parameter values.
[
'123',
[
'123',
'456',
],
TRUE,
],
[
'123',
[
'456',
'789',
],
FALSE,
],
// Test bad data that might be entered into the parameters:
[
'123',
[
'123 ',
],
FALSE,
],
[
'123',
[
0,
],
FALSE,
],
[
'123',
[
NULL,
],
FALSE,
],
];
}