You are here

public function MakemeetingPollAdminTestCase::testFieldUI in Make Meeting Scheduler 7.2

Test the creation of a content type and attach a field

File

./makemeeting.test, line 58
Makemeeting tests

Class

MakemeetingPollAdminTestCase
Test for the creation of a makemeeting poll.

Code

public function testFieldUI() {

  // Create the content type and attach the field
  $this
    ->_testCreateField();

  // Delete the field
  $this
    ->drupalGet('admin/structure/types/manage/event/fields');
  $this
    ->clickLink('delete', 1);

  // Body field present?
  $this
    ->drupalPost(NULL, NULL, t('Delete'));
  $this
    ->assertText('The field Choose date has been deleted from the Event content type.', 'Removed makemeeting field.');
}