You are here

public function PartyUserTestCase::testPartyUserDataSet in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_user/tests/party_user.test \PartyUserTestCase::testPartyUserDataSet()

Test whether the Data Set has been created and is shown in the ui.

File

modules/party_user/tests/party_user.test, line 42
Tests for the Party User module.

Class

PartyUserTestCase
Party User Data Set and Access tests.

Code

public function testPartyUserDataSet() {

  // Assert that Data Set Info exists for the 'User account' data set.
  $info = party_get_data_set_info('user');
  $this
    ->assertFalse(empty($info));
  $this
    ->drupalGet('admin/community/datasets');

  // Assert that the 'User account' data set appears on the data sets page.
  $this
    ->assertRaw('User account');
}