D7net Mini Sh3LL v1

 
OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /var/www/html/hpsc/../hpsclab/js/../../hpsc/css/../../antarctic-drupal-7.89/modules/node/../simpletest/tests/upgrade/

 Home   ☍ Command   ☍ Upload File   ☍Info Server   ☍ Buat File   ☍ Mass deface   ☍ Jumping   ☍ Config   ☍ Symlink   ☍ About 

Current File : /var/www/html/hpsc/../hpsclab/js/../../hpsc/css/../../antarctic-drupal-7.89/modules/node/../simpletest/tests/upgrade/update.field.test
<?php

/**
 * @file
 * Provides update path tests for the Field module.
 */

/**
 * Tests the Field 7.0 -> 7.x update path.
 */
class FieldUpdatePathTestCase extends UpdatePathTestCase {
  public static function getInfo() {
    return array(
      'name' => 'Field update path',
      'description' => 'Field update path tests.',
      'group' => 'Upgrade path',
    );
  }

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

    // Our test data includes poll extra field settings.
    $this->uninstallModulesExcept(array('field', 'poll'));
  }

  /**
   * Tests that the update is successful.
   */
  public function testFilledUpgrade() {
    $this->assertTrue($this->performUpgrade(), 'The update was completed successfully.');
    $expected_settings = array(
      'extra_fields' => array(
        'display' => array(
          'poll_view_voting' => array(
            'default' => array(
              'weight' => '0',
              'visible' => TRUE,
            ),
          ),
          'poll_view_results' => array(
            'default' => array(
              'weight' => '0',
              'visible' => FALSE,
            ),
          ),
        ),
        'form' => array(),
      ),
      'view_modes' => array(),
    );
    $actual_settings = field_bundle_settings('node', 'poll');
    $this->assertEqual($expected_settings, $actual_settings, 'Settings stored in field_bundle_settings were updated to per-bundle settings.');
  }
}

AnonSec - 2021 | Recode By D7net