contrib modules security updates

This commit is contained in:
Bachir Soussi Chiadmi
2016-10-13 12:10:40 +02:00
parent ffd758abc9
commit 747127f643
732 changed files with 67976 additions and 23207 deletions

View File

@@ -2,13 +2,14 @@
/**
* @file
* Test case for path alias mapper path.inc.
* Contains FeedsMapperPathTestCase.
*/
/**
* Class for testing Feeds <em>path</em> mapper.
* Test case for path alias mapper path.inc.
*/
class FeedsMapperPathTestCase extends FeedsMapperTestCase {
public static function getInfo() {
return array(
'name' => 'Mapper: Path',
@@ -25,7 +26,6 @@ class FeedsMapperPathTestCase extends FeedsMapperTestCase {
* Basic test loading a single entry CSV file.
*/
public function testNodeAlias() {
// Create importer configuration.
$this->createImporterConfiguration($this->randomName(), 'path_test');
$this->setPlugin('path_test', 'FeedsFileFetcher');
@@ -80,7 +80,6 @@ class FeedsMapperPathTestCase extends FeedsMapperTestCase {
* Test support for term aliases.
*/
public function testTermAlias() {
// Create importer configuration.
$this->createImporterConfiguration($this->randomName(), 'path_test');
$this->setPlugin('path_test', 'FeedsFileFetcher');
@@ -94,10 +93,7 @@ class FeedsMapperPathTestCase extends FeedsMapperTestCase {
);
$this->drupalPost('admin/structure/taxonomy/add', $edit, t('Save'));
$this->setSettings('path_test', 'FeedsTermProcessor', array('vocabulary' => 'addams'));
// Turn on update existing.
$this->setSettings('path_test', 'FeedsTermProcessor', array('update_existing' => 2));
$this->setSettings('path_test', 'FeedsTermProcessor', array('bundle' => 'addams', 'update_existing' => 2));
// Add mappings.
$this->addMappings('path_test', array(
@@ -158,6 +154,7 @@ class FeedsMapperPathTestCase extends FeedsMapperTestCase {
* Class for testing Feeds <em>path</em> mapper with pathauto.module.
*/
class FeedsMapperPathPathautoTestCase extends FeedsMapperTestCase {
public static function getInfo() {
return array(
'name' => 'Mapper: Path with pathauto',
@@ -175,7 +172,6 @@ class FeedsMapperPathPathautoTestCase extends FeedsMapperTestCase {
* Basic for allowing pathauto to override the alias.
*/
public function test() {
// Create importer configuration.
$this->createImporterConfiguration($this->randomName(), 'path_test');
$this->setPlugin('path_test', 'FeedsFileFetcher');
@@ -208,7 +204,7 @@ class FeedsMapperPathPathautoTestCase extends FeedsMapperTestCase {
$aliases = array();
for ($i = 1; $i <= 9; $i++) {
$aliases[] = "path$i";
$aliases[] = "content/pathauto$i";
}
$this->assertAliasCount($aliases);
@@ -229,12 +225,8 @@ class FeedsMapperPathPathautoTestCase extends FeedsMapperTestCase {
}
public function assertAliasCount($aliases) {
$in_db = db_select('url_alias', 'a')
->fields('a')
->condition('a.alias', $aliases)
->execute()
->fetchAll();
$in_db = db_query("SELECT * FROM {url_alias} WHERE alias IN (:aliases)", array(':aliases' => $aliases))->fetchAll();
$this->assertEqual(count($in_db), count($aliases), 'Correct number of aliases in db.');
}
}