You are here

public function MockDrupalGatherContentClient::itemChooseStatusPost in GatherContent 8.4

Same name and namespace in other branches
  1. 8.5 tests/modules/gathercontent_test/src/MockDrupalGatherContentClient.php \Drupal\gathercontent_test\MockDrupalGatherContentClient::itemChooseStatusPost()

Mock status change.

File

tests/modules/gathercontent_test/src/MockDrupalGatherContentClient.php, line 53

Class

MockDrupalGatherContentClient
Class to mock GC client.

Namespace

Drupal\gathercontent_test

Code

public function itemChooseStatusPost($itemId, $statusId) {
  if (static::$choosenStatus !== NULL) {
    throw new \Exception("itemChooseStatusPost shouldn't be called twice");
  }
  static::$choosenStatus = $statusId;
}