You are here

function BeanTestPlugins::testBeanTypeForm in Bean (for Drupal 7) 7

Test the bean form.

File

tests/BeanTestPlugins.test, line 63
A class for testing the plugin API.

Class

BeanTestPlugins
Test the plugin API.

Code

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

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