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/feeds_import/feeds_import.test
11 11
class FeedsExamplesNodeTestCase extends FeedsWebTestCase {
12 12

  
13 13
  /**
14
   * Set up test.
14
   * {@inheritdoc}
15 15
   */
16
  public function setUp() {
17
    parent::setUp(array('feeds_import'));
18
  }
19

  
20 16
  public static function getInfo() {
21 17
    return array(
22 18
      'name' => 'Feature: Node import',
......
25 21
    );
26 22
  }
27 23

  
24
  /**
25
   * {@inheritdoc}
26
   */
27
  public function setUp() {
28
    parent::setUp(array('feeds_import'));
29
  }
30

  
28 31
  /**
29 32
   * Run tests.
30 33
   */
......
61 64
      $this->assertEqual($count, 8, 'Found correct number of items.');
62 65
      $count = db_query("SELECT COUNT(*) FROM {node} WHERE type = 'article' AND status = 1 AND uid = 0")->fetchField();
63 66
      $this->assertEqual($count, 8, 'Found correct number of items.');
64
      // Do not filter on type intentionally. There shouldn't be more than 8 nodes total.
67
      // Do not filter on type intentionally. There shouldn't be more than 8
68
      // nodes total.
65 69
      $count = db_query("SELECT COUNT(*) FROM {node_revision}")->fetchField();
66 70
      $this->assertEqual($count, 8, 'Found correct number of items.');
67 71

  
......
108 112
    $this->drupalPost('import/node', $edit, 'Import');
109 113
    $this->assertText('Created 8 nodes');
110 114
  }
115

  
111 116
}
112 117

  
113 118
/**
114 119
 * Test User import configuration.
115 120
 */
116 121
class FeedsExamplesUserTestCase extends FeedsWebTestCase {
122

  
123
  /**
124
   * {@inheritdoc}
125
   */
117 126
  public static function getInfo() {
118 127
    return array(
119 128
      'name' => 'Feature: User import',
......
122 131
    );
123 132
  }
124 133

  
134
  /**
135
   * {@inheritdoc}
136
   */
125 137
  public function setUp() {
126 138
    parent::setUp(array('feeds_import'));
127 139
  }
......
142 154
    $this->assertText('Fester');
143 155
    $this->assertText('Gomez');
144 156
  }
157

  
145 158
}

Formats disponibles : Unified diff