You are here

class FeedAPTypeTestsCase in FeedAPI 6

Class for testing FeedAPI content-type related functionality.

Hierarchy

Expanded class hierarchy of FeedAPTypeTestsCase

File

tests/feedapi_type.test, line 8

View source
class FeedAPTypeTestsCase extends FeedAPITestCase {

  /**
   * Implementation of getInfo().
   */
  public static function getInfo() {
    return array(
      'name' => t('FeedAPI content-type form'),
      'description' => t('Tests FeedAPI content-type form handling.'),
      'group' => t('FeedAPI'),
    );
  }

  /**
   * Checks basic content-type form.
   */
  function testContentType_Setting_Page() {
    $this
      ->create_type(array_pop($this
      ->get_parsers()));
    $this
      ->feedapi_user(TRUE);
    $parsers_ok = $this
      ->get_parsers();
    $this
      ->create_type(array_shift($parsers_ok));
    $this
      ->drupalGet('admin/content/node-type/' . $this->info->type);
    $this
      ->assertText(t('FeedAPI'), 'The FeedAPI group appears at content-type edit page.');
    $this
      ->assertText(t('Created date of item nodes'), 'FeedAPI Node settings at content-type edit page.');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FeedAPTypeTestsCase::getInfo public static function Implementation of getInfo().
FeedAPTypeTestsCase::testContentType_Setting_Page function Checks basic content-type form.