private function RestIncidentStorageTest::getMultipleIncidentData in Radioactivity 8.3
Same name and namespace in other branches
- 4.0.x tests/src/Unit/RestIncidentStorageTest.php \Drupal\Tests\radioactivity\Unit\RestIncidentStorageTest::getMultipleIncidentData()
Returns incident data as returned by RestProcessor::getData.
Return value
array Decoded rest incident storage data.
2 calls to RestIncidentStorageTest::getMultipleIncidentData()
- RestIncidentStorageTest::testGetIncidentsByType in tests/
src/ Unit/ RestIncidentStorageTest.php - @covers ::getIncidentsByType
- RestIncidentStorageTest::testGetMultipleIncidents in tests/
src/ Unit/ RestIncidentStorageTest.php - @covers ::getIncidents
File
- tests/
src/ Unit/ RestIncidentStorageTest.php, line 145
Class
- RestIncidentStorageTest
- @coversDefaultClass \Drupal\radioactivity\RestIncidentStorage @group radioactivity
Namespace
Drupal\Tests\radioactivity\UnitCode
private function getMultipleIncidentData() {
$jsonData = '[[{"fn":"field_name","et":"entity_type","id":"99","e":10,"h":"fb05739ec66040df9e6c53330755753c02e73621"}],' . PHP_EOL . '[{"fn":"field_name","et":"entity_type","id":"88","e":10,"h":"5aae235691b06918a2a8eb3833bfb22a67d9b183"}],' . PHP_EOL . '[{"fn":"field_name","et":"entity_type","id":"88","e":10,"h":"5aae235691b06918a2a8eb3833bfb22a67d9b183"}],' . PHP_EOL . '[{"fn":"field_other","et":"node","id":"123","e":10,"h":"dedd866aefddfd94049f6fd8cf1b8d02065343e6"}]]';
return Json::decode($jsonData);
}