Révision ed9a13f1
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/feeds/feeds_news/feeds_news.test | ||
---|---|---|
9 | 9 |
* Test Feed configuration. |
10 | 10 |
*/ |
11 | 11 |
class FeedsExamplesFeedTestCase extends FeedsWebTestCase { |
12 |
|
|
13 |
/** |
|
14 |
* {@inheritdoc} |
|
15 |
*/ |
|
12 | 16 |
public static function getInfo() { |
13 | 17 |
return array( |
14 | 18 |
'name' => 'Feature: Feed', |
... | ... | |
18 | 22 |
); |
19 | 23 |
} |
20 | 24 |
|
25 |
/** |
|
26 |
* {@inheritdoc} |
|
27 |
*/ |
|
21 | 28 |
public function setUp() { |
22 | 29 |
parent::setUp(array('features', 'views', 'feeds_news')); |
23 | 30 |
} |
... | ... | |
60 | 67 |
$count = db_query("SELECT COUNT(*) FROM {feeds_item} WHERE entity_type = 'node' AND guid = '970 at http://developmentseed.org'")->fetchField(); |
61 | 68 |
$this->assertEqual($count, 1, 'Found feed_node_item record.'); |
62 | 69 |
|
63 |
// Remove all items |
|
70 |
// Remove all items.
|
|
64 | 71 |
$this->drupalPost("node/$nid/delete-items", array(), 'Delete'); |
65 | 72 |
$this->assertText('Deleted 10 nodes'); |
66 | 73 |
|
... | ... | |
84 | 91 |
$count = db_query("SELECT COUNT(*) FROM {feeds_item} WHERE entity_type = 'node'")->fetchField(); |
85 | 92 |
$this->assertEqual($count, 100, 'Found 100 records in feeds_item.'); |
86 | 93 |
} |
94 |
|
|
87 | 95 |
} |
88 | 96 |
|
89 | 97 |
/** |
... | ... | |
91 | 99 |
*/ |
92 | 100 |
class FeedsExamplesOPMLTestCase extends FeedsWebTestCase { |
93 | 101 |
|
102 |
/** |
|
103 |
* {@inheritdoc} |
|
104 |
*/ |
|
94 | 105 |
public static function getInfo() { |
95 | 106 |
return array( |
96 | 107 |
'name' => 'Feature: OPML import', |
... | ... | |
124 | 135 |
$this->drupalPost('node/1/delete-items', array(), 'Delete'); |
125 | 136 |
$this->assertText('Deleted 10 nodes'); |
126 | 137 |
} |
138 |
|
|
127 | 139 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules