Révision ed9a13f1
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/feeds/feeds_ui/feeds_ui.test | ||
---|---|---|
9 | 9 |
* Test basic Feeds UI functionality. |
10 | 10 |
*/ |
11 | 11 |
class FeedsUIUserInterfaceTestCase extends FeedsWebTestCase { |
12 |
|
|
13 |
/** |
|
14 |
* {@inheritdoc} |
|
15 |
*/ |
|
12 | 16 |
public static function getInfo() { |
13 | 17 |
return array( |
14 | 18 |
'name' => 'Feeds UI user interface', |
... | ... | |
17 | 21 |
); |
18 | 22 |
} |
19 | 23 |
|
24 |
/** |
|
25 |
* {@inheritdoc} |
|
26 |
*/ |
|
20 | 27 |
public function setUp() { |
21 | 28 |
parent::setUp(array('php', 'locale'), array('use PHP for settings', 'administer languages')); |
22 | 29 |
} |
... | ... | |
113 | 120 |
$edit = array( |
114 | 121 |
'title' => 'Development Seed', |
115 | 122 |
'feeds[FeedsHTTPFetcher][source]' => $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'feeds') . '/tests/feeds/developmentseed.rss2', |
116 |
);
|
|
123 |
); |
|
117 | 124 |
$this->drupalPost('node/add/page', $edit, 'Save'); |
118 | 125 |
$this->assertText('Basic page Development Seed has been created.'); |
119 | 126 |
|
... | ... | |
272 | 279 |
$this->assertText('The importer is attached to the same content type as the content type selected on the node processor. Unless you have a very advanced use case, these two should never be the same.'); |
273 | 280 |
} |
274 | 281 |
|
282 |
/** |
|
283 |
* Test the importer settings. |
|
284 |
*/ |
|
275 | 285 |
public function testImporterImport() { |
276 | 286 |
$name = $this->randomString(); |
277 | 287 |
$id = drupal_strtolower($this->randomName()); |
... | ... | |
391 | 401 |
*/ |
392 | 402 |
protected function doEditFeedsConfiguration($name = 'Syndication', $id = 'syndication') { |
393 | 403 |
// Assert UI elements. |
394 |
$this->drupalGet('admin/structure/feeds/'. $id); |
|
404 |
$this->drupalGet('admin/structure/feeds/' . $id);
|
|
395 | 405 |
$this->assertText($name); |
396 | 406 |
$this->assertText('Basic settings'); |
397 | 407 |
$this->assertText('Fetcher'); |
... | ... | |
401 | 411 |
$this->assertText('Processor'); |
402 | 412 |
$this->assertText('Node processor'); |
403 | 413 |
$this->assertText('Getting started'); |
404 |
$this->assertRaw('admin/structure/feeds/'. $id .'/settings');
|
|
405 |
$this->assertRaw('admin/structure/feeds/'. $id .'/settings/FeedsNodeProcessor');
|
|
406 |
$this->assertRaw('admin/structure/feeds/'. $id .'/fetcher');
|
|
407 |
$this->assertRaw('admin/structure/feeds/'. $id .'/parser');
|
|
408 |
$this->assertRaw('admin/structure/feeds/'. $id .'/processor');
|
|
414 |
$this->assertRaw('admin/structure/feeds/' . $id . '/settings');
|
|
415 |
$this->assertRaw('admin/structure/feeds/' . $id . '/settings/FeedsNodeProcessor');
|
|
416 |
$this->assertRaw('admin/structure/feeds/' . $id . '/fetcher');
|
|
417 |
$this->assertRaw('admin/structure/feeds/' . $id . '/parser');
|
|
418 |
$this->assertRaw('admin/structure/feeds/' . $id . '/processor');
|
|
409 | 419 |
} |
410 | 420 |
|
411 | 421 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules