public function OgResolvedGroupCollectionTest::mixedDataProvider in Organic groups 8
Provides mixed data for testing data types.
File
- tests/
src/ Unit/ OgResolvedGroupCollectionTest.php, line 540
Class
- OgResolvedGroupCollectionTest
- Tests the collecting of resolved groups to pass as a route context.
Namespace
Drupal\Tests\og\UnitCode
public function mixedDataProvider() {
return [
[
NULL,
],
[
TRUE,
],
[
FALSE,
],
[
0,
],
[
1,
],
[
100,
],
[
-100,
],
[
1.0,
],
[
1200.0,
],
[
7.0E-10,
],
[
100 / 3,
],
[
-100 / 3,
],
[
0x100,
],
[
0123,
],
[
0b100011,
],
[
'<script>alert(123)</script>',
],
[
'😍',
],
[
[
'foo',
'bar',
],
],
[
new \stdClass(),
],
[
$this,
],
];
}