Projet

Général

Profil

Révision ed9a13f1

Ajouté par Assos Assos il y a plus de 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/feeds/tests/feeds_mapper_path.test
10 10
 */
11 11
class FeedsMapperPathTestCase extends FeedsMapperTestCase {
12 12

  
13
  /**
14
   * {@inheritdoc}
15
   */
13 16
  public static function getInfo() {
14 17
    return array(
15 18
      'name' => 'Mapper: Path',
......
18 21
    );
19 22
  }
20 23

  
24
  /**
25
   * {@inheritdoc}
26
   */
21 27
  public function setUp() {
22 28
    parent::setUp(array('path'));
23 29
  }
......
139 145
    $this->assertAliasCount($aliases);
140 146
  }
141 147

  
148
  /**
149
   * {@inheritdoc}
150
   */
142 151
  public function assertAliasCount($aliases) {
143 152
    $in_db = db_select('url_alias', 'a')
144 153
      ->fields('a')
......
148 157

  
149 158
    $this->assertEqual(count($in_db), count($aliases), 'Correct number of aliases in db.');
150 159
  }
160

  
151 161
}
152 162

  
153 163
/**
......
155 165
 */
156 166
class FeedsMapperPathPathautoTestCase extends FeedsMapperTestCase {
157 167

  
168
  /**
169
   * {@inheritdoc}
170
   */
158 171
  public static function getInfo() {
159 172
    return array(
160 173
      'name' => 'Mapper: Path with pathauto',
......
164 177
    );
165 178
  }
166 179

  
180
  /**
181
   * {@inheritdoc}
182
   */
167 183
  public function setUp() {
168 184
    parent::setUp(array('pathauto'));
169 185
  }
......
224 240
    $this->assertAliasCount($aliases);
225 241
  }
226 242

  
243
  /**
244
   * {@inheritdoc}
245
   */
227 246
  public function assertAliasCount($aliases) {
228 247
    $in_db = db_query("SELECT * FROM {url_alias} WHERE alias IN (:aliases)", array(':aliases' => $aliases))->fetchAll();
229 248
    $this->assertEqual(count($in_db), count($aliases), 'Correct number of aliases in db.');

Formats disponibles : Unified diff