You are here

function PartyAccessTestCase::testPartyDataSetSpecialCRUDAccess in Party 8.2

Same name and namespace in other branches
  1. 7 tests/party_access.test \PartyAccessTestCase::testPartyDataSetSpecialCRUDAccess()

Test special data set crud behaviour.

For some data set actions we need special access checks. For example, when adding or attaching an entity party_party_access makes sure the maximum number of attached entities is not going to be exceeded.

File

tests/party_access.test, line 142
Access Tests for the Party module.

Class

PartyAccessTestCase
Test Core Party functionality

Code

function testPartyDataSetSpecialCRUDAccess() {

  // Create a user with permission to attach a given data set
  $user = $this
    ->drupalCreateUser(array(
    'attach party ' . $this->data_set_name,
  ));

  // @todo: Create a party, attach an entity to a data set that is singleton
  //        and attempt to add another. Leaving this for now as I think we
  //        don't provide any data sets that are singleton by default.
}