Révision 4444412d
Ajouté par Julien Enselme il y a presque 10 ans
drupal7/modules/aggregator/aggregator.test | ||
---|---|---|
288 | 288 |
return $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'aggregator') . '/tests/aggregator_test_atom.xml'; |
289 | 289 |
} |
290 | 290 |
|
291 |
function getHtmlEntitiesSample() { |
|
292 |
return $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'aggregator') . '/tests/aggregator_test_title_entities.xml'; |
|
293 |
} |
|
294 |
|
|
291 | 295 |
/** |
292 | 296 |
* Creates sample article nodes. |
293 | 297 |
* |
... | ... | |
1016 | 1020 |
$this->assertText('Some text.'); |
1017 | 1021 |
$this->assertEqual('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a', db_query('SELECT guid FROM {aggregator_item} WHERE link = :link', array(':link' => 'http://example.org/2003/12/13/atom03'))->fetchField(), 'Atom entry id element is parsed correctly.'); |
1018 | 1022 |
} |
1023 |
|
|
1024 |
/** |
|
1025 |
* Tests a feed that uses HTML entities in item titles. |
|
1026 |
*/ |
|
1027 |
function testHtmlEntitiesSample() { |
|
1028 |
$feed = $this->createFeed($this->getHtmlEntitiesSample()); |
|
1029 |
aggregator_refresh($feed); |
|
1030 |
$this->drupalGet('aggregator/sources/' . $feed->fid); |
|
1031 |
$this->assertResponse(200, format_string('Feed %name exists.', array('%name' => $feed->title))); |
|
1032 |
$this->assertRaw("Quote" Amp&"); |
|
1033 |
} |
|
1019 | 1034 |
} |
Formats disponibles : Unified diff
Update drupal 7.27 -> 7.28