Révision ed9a13f1
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/feeds/tests/feeds_mapper_date_multiple.test | ||
---|---|---|
13 | 13 |
*/ |
14 | 14 |
class FeedsMapperDateMultipleTestCase extends FeedsMapperTestCase { |
15 | 15 |
|
16 |
/** |
|
17 |
* {@inheritdoc} |
|
18 |
*/ |
|
16 | 19 |
public static function getInfo() { |
17 | 20 |
return array( |
18 | 21 |
'name' => 'Mapper: Date, multi value fields', |
... | ... | |
22 | 25 |
); |
23 | 26 |
} |
24 | 27 |
|
28 |
/** |
|
29 |
* {@inheritdoc} |
|
30 |
*/ |
|
25 | 31 |
public function setUp() { |
26 | 32 |
parent::setUp(array('date_api', 'date', 'feeds_xpathparser')); |
27 | 33 |
variable_set('date_default_timezone', 'UTC'); |
... | ... | |
37 | 43 |
$typename = $this->createContentType(array(), array( |
38 | 44 |
'date' => 'date', |
39 | 45 |
)); |
40 |
// Make the field hold unlimited values |
|
46 |
// Make the field hold unlimited values.
|
|
41 | 47 |
$edit = array( |
42 | 48 |
'field[cardinality]' => -1, |
43 | 49 |
); |
... | ... | |
102 | 108 |
'01/08/2010 - 15:00', |
103 | 109 |
'01/09/2010 - 15:00', |
104 | 110 |
), |
111 |
// Bogus date was filtered out. |
|
105 | 112 |
3 => array( |
106 |
'', // Bogus date was filtered out.
|
|
113 |
'', |
|
107 | 114 |
), |
108 | 115 |
4 => array( |
109 | 116 |
'01/06/2010 - 14:00', |
110 |
) |
|
117 |
),
|
|
111 | 118 |
); |
112 | 119 |
foreach ($values as $v => $key) { |
113 | 120 |
$this->drupalGet("node/$v/edit"); |
Formats disponibles : Unified diff
Weekly update of contrib modules