Révision ed9a13f1
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/feeds/tests/feeds_mapper_list.test | ||
---|---|---|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
/** |
9 |
* Test case for List field mappers in mappers/list.inc |
|
9 |
* Test case for List field mappers in mappers/list.inc.
|
|
10 | 10 |
*/ |
11 | 11 |
class FeedsMapperListTestCase extends FeedsMapperTestCase { |
12 |
|
|
13 |
/** |
|
14 |
* {@inheritdoc} |
|
15 |
*/ |
|
12 | 16 |
public static function getInfo() { |
13 | 17 |
return array( |
14 | 18 |
'name' => 'Mapper: List and Boolean', |
... | ... | |
18 | 22 |
); |
19 | 23 |
} |
20 | 24 |
|
25 |
/** |
|
26 |
* {@inheritdoc} |
|
27 |
*/ |
|
21 | 28 |
public function setUp() { |
22 | 29 |
parent::setUp(array('list')); |
23 | 30 |
} |
... | ... | |
59 | 66 |
$this->setPlugin('csv', 'FeedsCSVParser'); |
60 | 67 |
$this->setSettings('csv', 'FeedsNodeProcessor', array( |
61 | 68 |
'bundle' => $typename, |
62 |
'update_existing' => 1 |
|
69 |
'update_existing' => 1,
|
|
63 | 70 |
)); |
64 | 71 |
$this->addMappings('csv', array( |
65 | 72 |
array( |
... | ... | |
177 | 184 |
$node = node_load(1, NULL, TRUE); |
178 | 185 |
$this->assertTrue(empty($node->field_epsilon[LANGUAGE_NONE]), 'The field field_epsilon is empty.'); |
179 | 186 |
} |
187 |
|
|
180 | 188 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules