You are here

iframe.test in Iframe 7

File

iframe.test
View source
<?php

// see: fieldapi/text/text.test
class IframeFieldTestCase extends DrupalWebTestCase {
  protected $instance;
  protected $admin_user;
  protected $web_user;
  public static function getInfo() {
    return array(
      'name' => 'Iframe field',
      'description' => "Test the creation of iframe fields.",
      'group' => 'Field types',
    );
  }
  function setUp() {
    parent::setUp('field_test');
    $this->admin_user = $this
      ->drupalCreateUser(array(
      'administer filters',
    ));
    $this->web_user = $this
      ->drupalCreateUser(array(
      'access field_test content',
      'administer field_test content',
    ));
    $this
      ->drupalLogin($this->web_user);
  }

}

Classes