public static function MockData::getStatuses in GatherContent 8.4
Same name and namespace in other branches
- 8.5 tests/modules/gathercontent_test/src/MockData.php \Drupal\gathercontent_test\MockData::getStatuses()
Get mock statuses.
1 call to MockData::getStatuses()
- MockDrupalGatherContentClient::projectStatusGet in tests/
modules/ gathercontent_test/ src/ MockDrupalGatherContentClient.php - Mock status fetch.
File
- tests/
modules/ gathercontent_test/ src/ MockData.php, line 201
Class
- MockData
- A class for getting static test data.
Namespace
Drupal\gathercontent_testCode
public static function getStatuses() {
$statuses = [];
$status1 = new Status();
$status1->id = 1;
$status1->isDefault = TRUE;
$status1->position = 1;
$status1->color = '#FF0000';
$status1->name = 'Status 1';
$status1->canEdit = TRUE;
$statuses[] = $status1;
$status2 = new Status();
$status2->id = 2;
$status2->position = 2;
$status2->color = '#00FF00';
$status2->name = 'Status 2';
$status2->canEdit = TRUE;
$statuses[] = $status2;
$status3 = new Status();
$status3->id = 3;
$status3->position = 3;
$status3->color = '#0000FF';
$status3->name = 'Status 3';
$status3->canEdit = TRUE;
$statuses[] = $status3;
return $statuses;
}