feedapi_type.test in FeedAPI 6
File
tests/feedapi_type.test
View source
<?php
require_once dirname(__FILE__) . '/feedapi_test_case.tinc';
class FeedAPTypeTestsCase extends FeedAPITestCase {
public static function getInfo() {
return array(
'name' => t('FeedAPI content-type form'),
'description' => t('Tests FeedAPI content-type form handling.'),
'group' => t('FeedAPI'),
);
}
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.');
}
}