Projet

Général

Profil

Paste
Télécharger (928 octets) Statistiques
| Branche: | Révision:

root / drupal7 / modules / simpletest / tests / upgrade / update.user.test @ f7a2490e

1
<?php
2

    
3
/**
4
 * @file
5
 * Provides update path tests for the User module.
6
 */
7

    
8
/**
9
 * Tests the User 7.0 -> 7.x update path.
10
 */
11
class UserUpdatePathTestCase extends UpdatePathTestCase {
12
  public static function getInfo() {
13
    return array(
14
      'name' => 'User update path',
15
      'description' => 'User update path tests.',
16
      'group' => 'Upgrade path',
17
    );
18
  }
19

    
20
  public function setUp() {
21
    // Use the filled update path and our field data.
22
    $this->databaseDumpFiles = array(
23
      drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.filled.standard_all.database.php.gz',
24
    );
25
    parent::setUp();
26
  }
27

    
28
  /**
29
   * Tests that the update is successful.
30
   */
31
  public function testFilledUpgrade() {
32
    $this->assertTrue($this->performUpgrade(), 'The update was completed successfully.');
33
    $this->assertTrue(db_index_exists('users', 'picture'), 'The {users}.picture column has an index.');
34
  }
35
}