public function MockDrupalGatherContentClient::itemChooseStatusPost in GatherContent 8.5
Same name and namespace in other branches
- 8.4 tests/modules/gathercontent_test/src/MockDrupalGatherContentClient.php \Drupal\gathercontent_test\MockDrupalGatherContentClient::itemChooseStatusPost()
Mock status change.
File
- tests/
modules/ gathercontent_test/ src/ MockDrupalGatherContentClient.php, line 58
Class
- MockDrupalGatherContentClient
- Class to mock GC client.
Namespace
Drupal\gathercontent_testCode
public function itemChooseStatusPost($itemId, $statusId) {
if (static::$chosenStatus !== NULL) {
throw new \Exception("itemChooseStatusPost shouldn't be called twice");
}
static::$chosenStatus = $statusId;
}