protected function TmgmtExtensionSuitTestBase::translateJobItems in TMGMT Extension Suite 8
Translates job items (marks as "needs review").
Parameters
array $jobItemIds:
1 call to TmgmtExtensionSuitTestBase::translateJobItems()
- CheckStatusTest::testCheckStatus in src/
Tests/ CheckStatusTest.php - Test tmgmt_extension_suit_add_to_check_status() function.
File
- src/
Tests/ TmgmtExtensionSuitTestBase.php, line 146
Class
- TmgmtExtensionSuitTestBase
- Basic class for tmgmt extension module.
Namespace
Drupal\tmgmt_extension_suit\TestsCode
protected function translateJobItems(array $jobItemIds) {
foreach ($jobItemIds as $jobItemId) {
$jobItem = JobItem::load($jobItemId);
$jobItem
->setState(JobItem::STATE_REVIEW);
$jobItem
->save();
}
}