Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078
This commit is contained in:
parent
6419a031d7
commit
4afb23bbd3
762 changed files with 20080 additions and 6368 deletions
|
@ -150,6 +150,12 @@ class ConfigCRUDTest extends KernelTestBase {
|
|||
$new_config->save();
|
||||
$this->assertIdentical($new_config->get('value'), $expected_values['value']);
|
||||
$this->assertIdentical($new_config->get('404'), $expected_values['404']);
|
||||
|
||||
// Test that getMultiple() does not return new config objects that were
|
||||
// previously accessed with get()
|
||||
$new_config = $config_factory->get('non_existing_key');
|
||||
$this->assertTrue($new_config->isNew());
|
||||
$this->assertEqual(0, count($config_factory->loadMultiple(['non_existing_key'])), 'loadMultiple() does not return new objects');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Definition of Drupal\config\Tests\ConfigEntityListMultilingualTest.
|
||||
* Contains \Drupal\config\Tests\ConfigEntityListMultilingualTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\config\Tests;
|
||||
|
|
|
@ -132,6 +132,8 @@ class ConfigOverrideTest extends KernelTestBase {
|
|||
->save();
|
||||
// Ensure override is preserved but all other data has been updated
|
||||
// accordingly.
|
||||
$config = \Drupal::config('config_test.new');
|
||||
$this->assertFalse($config->isNew(), 'The configuration object config_test.new is not new');
|
||||
$this->assertIdentical($config->get('key'), 'override');
|
||||
$this->assertIdentical($config->get('new_key'), 'new_value');
|
||||
$raw_data = $config->getRawData();
|
||||
|
|
|
@ -16,7 +16,7 @@ use Drupal\Core\Config\Config;
|
|||
class ConfigTestStorage extends ConfigEntityStorage {
|
||||
|
||||
/**
|
||||
* Overrides \Drupal\Core\Config\Entity\ConfigEntityStorage::importCreate().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function importCreate($name, Config $new_config, Config $old_config) {
|
||||
// Set a global value we can check in test code.
|
||||
|
@ -26,7 +26,7 @@ class ConfigTestStorage extends ConfigEntityStorage {
|
|||
}
|
||||
|
||||
/**
|
||||
* Overrides \Drupal\Core\Config\Entity\ConfigEntityStorage::importUpdate().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function importUpdate($name, Config $new_config, Config $old_config) {
|
||||
// Set a global value we can check in test code.
|
||||
|
@ -36,7 +36,7 @@ class ConfigTestStorage extends ConfigEntityStorage {
|
|||
}
|
||||
|
||||
/**
|
||||
* Overrides \Drupal\Core\Config\Entity\ConfigEntityStorage::importDelete().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function importDelete($name, Config $new_config, Config $old_config) {
|
||||
// Set a global value we can check in test code.
|
||||
|
|
|
@ -80,7 +80,7 @@ class ConfigTest extends ConfigEntityBase implements ConfigTestInterface {
|
|||
protected $protected_property;
|
||||
|
||||
/**
|
||||
* Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::sort().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) {
|
||||
\Drupal::state()->set('config_entity_sort', TRUE);
|
||||
|
|
Reference in a new issue