You are here

function BoxesTestPlugins::testBoxesTypeForm in Boxes 7.2

Test the boxes form

File

./boxes.test, line 87
Tests for block.module.

Class

BoxesTestPlugins
Test the API

Code

function testBoxesTypeForm() {
  foreach (boxes_get_types() as $type) {
    $this
      ->drupalGet("block/add/{$type->buildUrl()}");

    // Verify the core fields are there
    $this
      ->assertFieldById('edit-label', '', t('Label exists on box add form.'));
    $this
      ->assertFieldById('edit-title', '', t('Title exists on box add form.'));
    $this
      ->assertFieldById('edit-view-mode', '', t('View Mode exists on box add form.'));
  }
}