Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\update_test\Controller\UpdateTestController.
|
||||
*/
|
||||
|
||||
namespace Drupal\update_test\Controller;
|
||||
|
||||
use Drupal\Core\Controller\ControllerBase;
|
||||
|
@ -68,8 +63,7 @@ class UpdateTestController extends ControllerBase {
|
|||
$availability_scenario = '#broken#';
|
||||
}
|
||||
|
||||
$path = drupal_get_path('module', 'update_test');
|
||||
$file = "$path/$project_name.$availability_scenario.xml";
|
||||
$file = __DIR__ . "/../../$project_name.$availability_scenario.xml";
|
||||
$headers = array('Content-Type' => 'text/xml; charset=utf-8');
|
||||
if (!is_file($file)) {
|
||||
// Return an empty response.
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\update_test\MockFileTransfer.
|
||||
*/
|
||||
|
||||
namespace Drupal\update_test;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver.
|
||||
*/
|
||||
|
||||
namespace Drupal\update_test\Plugin\Archiver;
|
||||
|
||||
use Drupal\Core\Archiver\ArchiverInterface;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
use Drupal\Core\Extension\Extension;
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Module for testing Update Manager functionality.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Extension\Extension;
|
||||
|
||||
/**
|
||||
* Implements hook_system_info_alter().
|
||||
*
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\update\Kernel\Migrate\d6;
|
||||
|
||||
use Drupal\config\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
|
||||
|
||||
/**
|
||||
* Upgrade variables to update.settings.yml.
|
||||
*
|
||||
* @group migrate_drupal_6
|
||||
*/
|
||||
class MigrateUpdateConfigsTest extends MigrateDrupal6TestBase {
|
||||
|
||||
use SchemaCheckTestTrait;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static $modules = array('update');
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->executeMigration('update_settings');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests migration of update variables to update.settings.yml.
|
||||
*/
|
||||
public function testUpdateSettings() {
|
||||
$config = $this->config('update.settings');
|
||||
$this->assertIdentical(2, $config->get('fetch.max_attempts'));
|
||||
$this->assertIdentical('http://updates.drupal.org/release-history', $config->get('fetch.url'));
|
||||
$this->assertIdentical('all', $config->get('notification.threshold'));
|
||||
$this->assertIdentical(array(), $config->get('notification.emails'));
|
||||
$this->assertIdentical(7, $config->get('check.interval_days'));
|
||||
$this->assertConfigSchema(\Drupal::service('config.typed'), 'update.settings', $config->get());
|
||||
}
|
||||
|
||||
}
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Tests\update\Unit\Menu\UpdateLocalTasksTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\Tests\update\Unit\Menu;
|
||||
|
||||
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Tests\update\Unit\UpdateFetcherTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\Tests\update\Unit;
|
||||
|
||||
use Drupal\Tests\UnitTestCase;
|
||||
|
|
Reference in a new issue