Révision ed9a13f1
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/feeds/tests/feeds_mapper_file.test | ||
---|---|---|
10 | 10 |
*/ |
11 | 11 |
class FeedsMapperFileTestCase extends FeedsMapperTestCase { |
12 | 12 |
|
13 |
/** |
|
14 |
* {@inheritdoc} |
|
15 |
*/ |
|
13 | 16 |
public static function getInfo() { |
14 | 17 |
return array( |
15 | 18 |
'name' => 'Mapper: File field', |
... | ... | |
18 | 21 |
); |
19 | 22 |
} |
20 | 23 |
|
24 |
/** |
|
25 |
* {@inheritdoc} |
|
26 |
*/ |
|
21 | 27 |
public function setUp() { |
22 | 28 |
parent::setUp(array('dblog')); |
23 | 29 |
|
... | ... | |
50 | 56 |
)); |
51 | 57 |
|
52 | 58 |
// 1) Test mapping remote resources to file field. |
53 |
|
|
54 | 59 |
// Create importer configuration. |
55 | 60 |
$this->createImporterConfiguration(); |
56 | 61 |
$this->setPlugin('syndication', 'FeedsSimplePieParser'); |
... | ... | |
83 | 88 |
} |
84 | 89 |
|
85 | 90 |
// 2) Test mapping local resources to file field. |
86 |
|
|
87 | 91 |
// Copy directory of files, CSV file expects them in public://images, point |
88 | 92 |
// file field to a 'resources' directory. Feeds should copy files from |
89 | 93 |
// images/ to resources/ on import. |
... | ... | |
695 | 699 |
} |
696 | 700 |
} |
697 | 701 |
|
702 |
/** |
|
703 |
* {@inheritdoc} |
|
704 |
*/ |
|
698 | 705 |
public function testInvalidFileExtension() { |
699 | 706 |
variable_set('feeds_never_use_curl', TRUE); |
700 | 707 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules