update.user.test 928 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @file
  4. * Provides update path tests for the User module.
  5. */
  6. /**
  7. * Tests the User 7.0 -> 7.x update path.
  8. */
  9. class UserUpdatePathTestCase extends UpdatePathTestCase {
  10. public static function getInfo() {
  11. return array(
  12. 'name' => 'User update path',
  13. 'description' => 'User update path tests.',
  14. 'group' => 'Upgrade path',
  15. );
  16. }
  17. public function setUp() {
  18. // Use the filled update path and our field data.
  19. $this->databaseDumpFiles = array(
  20. drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.filled.standard_all.database.php.gz',
  21. );
  22. parent::setUp();
  23. }
  24. /**
  25. * Tests that the update is successful.
  26. */
  27. public function testFilledUpgrade() {
  28. $this->assertTrue($this->performUpgrade(), 'The update was completed successfully.');
  29. $this->assertTrue(db_index_exists('users', 'picture'), 'The {users}.picture column has an index.');
  30. }
  31. }