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_scheduler.test
10 10
 */
11 11
class FeedsSchedulerTestCase extends FeedsWebTestCase {
12 12

  
13
  /**
14
   * {@inheritdoc}
15
   */
13 16
  public static function getInfo() {
14 17
    return array(
15 18
      'name' => 'Scheduler',
......
314 317
  /**
315 318
   * Test batching on cron.
316 319
   */
317
  function testBatching() {
320
  public function testBatching() {
318 321
    // Set up an importer.
319 322
    $this->createImporterConfiguration('Node import', 'node');
320 323
    // Set and configure plugins and mappings.
......
463 466
    $this->drupalLogout();
464 467
    $this->cronRun();
465 468
    $count = db_query("SELECT COUNT(*) FROM {job_schedule} WHERE last > :time", array(':time' => $time))->fetchField();
466
    $this->assertEqual($count, 0, '0 feeds refreshed on cron.'. $count);
469
    $this->assertEqual($count, 0, '0 feeds refreshed on cron.' . $count);
467 470

  
468 471
    // Set next time to 0 to simulate updates.
469 472
    db_query("UPDATE {job_schedule} SET next = 0");

Formats disponibles : Unified diff