Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -90,7 +90,7 @@ function _batch_test_nested_batch_callback() {
|
|||
function _batch_test_finished_helper($batch_id, $success, $results, $operations) {
|
||||
if ($results) {
|
||||
foreach ($results as $op => $op_results) {
|
||||
$messages[] = 'op '. Html::escape($op) . ': processed ' . count($op_results) . ' elements';
|
||||
$messages[] = 'op ' . Html::escape($op) . ': processed ' . count($op_results) . ' elements';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -23,7 +23,7 @@ function _batch_test_batch_0() {
|
|||
$batch = array(
|
||||
'operations' => array(),
|
||||
'finished' => '_batch_test_finished_0',
|
||||
'file' => drupal_get_path('module', 'batch_test'). '/batch_test.callbacks.inc',
|
||||
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
|
||||
);
|
||||
return $batch;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ function _batch_test_batch_1() {
|
|||
$batch = array(
|
||||
'operations' => $operations,
|
||||
'finished' => '_batch_test_finished_1',
|
||||
'file' => drupal_get_path('module', 'batch_test'). '/batch_test.callbacks.inc',
|
||||
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
|
||||
);
|
||||
return $batch;
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ function _batch_test_batch_5() {
|
|||
$batch = array(
|
||||
'operations' => $operations,
|
||||
'finished' => '_batch_test_finished_5',
|
||||
'file' => drupal_get_path('module', 'batch_test'). '/batch_test.callbacks.inc',
|
||||
'file' => drupal_get_path('module', 'batch_test') . '/batch_test.callbacks.inc',
|
||||
);
|
||||
return $batch;
|
||||
}
|
||||
|
|
|
@ -210,7 +210,6 @@ function common_test_library_info_alter(&$libraries, $module) {
|
|||
* cron going.
|
||||
*
|
||||
* @see common_test_cron_helper()
|
||||
*
|
||||
*/
|
||||
function common_test_cron() {
|
||||
throw new Exception(t('Uncaught exception'));
|
||||
|
|
|
@ -48,7 +48,6 @@ class FormController implements FormInterface {
|
|||
|
||||
/**
|
||||
* Implements \Drupal\Core\Form\FormInterface::validateForm().
|
||||
*
|
||||
*/
|
||||
public function validateForm(array &$form, FormStateInterface $form_state) {
|
||||
$this->condition->validateConfigurationForm($form, $form_state);
|
||||
|
@ -70,4 +69,5 @@ class FormController implements FormInterface {
|
|||
drupal_set_message(t('Executed successfully.'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -142,4 +142,5 @@ class DatabaseTestController {
|
|||
'tasks' => $tasks,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,4 +41,5 @@ class EntityTestConstraints extends EntityTest implements EntityChangedInterface
|
|||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,4 +41,5 @@ class EntityTestFieldOverride extends EntityTest {
|
|||
}
|
||||
return $fields;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -71,4 +71,5 @@ class EntityTestMulChanged extends EntityTestMul implements EntityChangedInterfa
|
|||
sleep(1);
|
||||
parent::save();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class EntityTestLocalTasks extends DeriverBase {
|
|||
$this->derivatives = array();
|
||||
$types = entity_test_entity_types(ENTITY_TEST_TYPES_ROUTING);
|
||||
|
||||
foreach($types as $entity_type) {
|
||||
foreach ($types as $entity_type) {
|
||||
$this->derivatives[$entity_type . '.canonical'] = array();
|
||||
$this->derivatives[$entity_type . '.canonical']['base_route'] = "entity.$entity_type.canonical";
|
||||
$this->derivatives[$entity_type . '.canonical']['route_name'] = "entity.$entity_type.canonical";
|
||||
|
|
|
@ -77,4 +77,11 @@ class ShapeItem extends FieldItemBase {
|
|||
return empty($item['shape']) && empty($item['color']);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function mainPropertyName() {
|
||||
return 'shape';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -20,4 +20,5 @@ class ErrorServiceTestServiceProvider implements ServiceModifierInterface {
|
|||
public function alter(ContainerBuilder $container) {
|
||||
static::$containerBuilder = $container;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -382,7 +382,6 @@ form_test.checkboxes_zero:
|
|||
defaults:
|
||||
_form: '\Drupal\form_test\Form\FormTestCheckboxesZeroForm'
|
||||
_title: 'FAPI test involving checkboxes and zero'
|
||||
json: TRUE
|
||||
requirements:
|
||||
_access: 'TRUE'
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class FormTestCheckboxesZeroForm extends FormBase {
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
public function submitForm(array &$form, FormStateInterface $form_state) {
|
||||
if ($form_state->has('json')) {
|
||||
if ($form_state->get('json')) {
|
||||
$form_state->setResponse(new JsonResponse($form_state->getValues()));
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -52,4 +52,5 @@ class FormTestVerticalTabsForm extends FormBase {
|
|||
print Json::encode($form_state->getValues());
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,4 +35,5 @@ class RedirectBlockForm extends FormBase {
|
|||
public function submitForm(array &$form, FormStateInterface $form_state) {
|
||||
$form_state->setRedirect('form_test.route1', array(), array('query' => array('test1' => 'test2')));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -18,4 +18,5 @@ class BrokenToolkit extends TestToolkit {
|
|||
public static function isAvailable() {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ function menu_test_menu_name($new_name = '') {
|
|||
* @return string
|
||||
* A string containing the title and case number.
|
||||
*
|
||||
* @see menu_test_menu().
|
||||
* @see menu_test_menu()
|
||||
*/
|
||||
function menu_test_title_callback($title, $case_number = 3) {
|
||||
return t($title) . ' - Case ' . $case_number;
|
||||
|
|
|
@ -19,4 +19,5 @@ class LocalTaskTest extends DeriverBase {
|
|||
}
|
||||
return $this->derivatives;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -82,4 +82,5 @@ class TestControllers {
|
|||
]
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,4 +6,5 @@ class SomeClass {
|
|||
function testMethod() {
|
||||
return 'Drupal\\module_autoload_test\\SomeClass::testMethod() was invoked.';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ function module_test_hook_info() {
|
|||
/**
|
||||
* Load function used by module_test_hook_dynamic_loading_invoke_all_during_load().
|
||||
*
|
||||
* @see module_test_menu().
|
||||
* @see module_test_menu()
|
||||
*/
|
||||
function module_test_load($param) {
|
||||
$result = \Drupal::moduleHandler()->invokeAll('test_hook');
|
||||
|
|
|
@ -24,4 +24,5 @@ class TestControllers {
|
|||
\Drupal::service('renderer')->addCacheableDependency($build, $node);
|
||||
return $build;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -133,4 +133,5 @@ class MockBlockManager extends PluginManagerBase {
|
|||
// printing TranslatableMarkup objects.
|
||||
return new ContextDefinition($data_type, (string) $label, $required);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,4 +35,5 @@ class TestPluginManager extends PluginManagerBase {
|
|||
// so we provide it the discovery object.
|
||||
$this->factory = new DefaultFactory($this->discovery);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,4 +16,5 @@ class MockComplexContextBlock extends ContextAwarePluginBase {
|
|||
$node = $this->getContextValue('node');
|
||||
return $user->label() . ' -- ' . $node->label();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -47,4 +47,5 @@ class MockLayoutBlockDeriver implements DeriverInterface {
|
|||
|
||||
return $derivatives;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -44,4 +44,5 @@ class MockMenuBlock {
|
|||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -51,4 +51,5 @@ class MockMenuBlockDeriver implements DeriverInterface {
|
|||
|
||||
return $derivatives;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,4 +26,5 @@ class MockUserLoginBlock extends PluginBase {
|
|||
public function getTitle() {
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,4 +15,5 @@ class MockUserNameBlock extends ContextAwarePluginBase {
|
|||
$user = $this->getContextValue('user');
|
||||
return $user->label();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,4 +15,5 @@ class TypedDataStringBlock extends ContextAwarePluginBase {
|
|||
public function getTitle() {
|
||||
return $this->getContextValue('string');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,4 +21,5 @@ class TestAccessCheck implements AccessInterface {
|
|||
// allowed or not.
|
||||
return AccessResult::neutral();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -18,4 +18,5 @@ class RouterTestServiceProvider implements ServiceProviderInterface {
|
|||
$container->register('access_check.router_test', 'Drupal\router_test\Access\TestAccessCheck')
|
||||
->addTag('access_check', array('applies_to' => '_access_router_test'));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,4 +26,5 @@ class ServiceProviderTestServiceProvider implements ServiceModifierInterface {
|
|||
$container->setParameter('container_rebuild_test_parameter', $parameter);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -69,4 +69,5 @@ class TestClass implements EventSubscriberInterface, DestructableInterface, Cont
|
|||
public function destruct() {
|
||||
$this->state->set('service_provider_test.destructed', TRUE);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -24,4 +24,5 @@ class TestFileUsage extends FileUsageBase {
|
|||
*/
|
||||
public function listUsage(FileInterface $file) {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -29,4 +29,5 @@ class TestPhpMailFailure extends PhpMail implements MailInterface {
|
|||
// Simulate a failed mail send by returning FALSE.
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,4 +27,5 @@ class PageCacheAcceptHeaderController {
|
|||
return new CacheableResponse("<p>oh hai this is html.</p>");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -242,7 +242,7 @@ class SystemTestController extends ControllerBase {
|
|||
/**
|
||||
* Initialize authorize.php during testing.
|
||||
*
|
||||
* @see system_authorized_init().
|
||||
* @see system_authorized_init()
|
||||
*/
|
||||
public function authorizeInit($page_title) {
|
||||
$authorize_url = Url::fromUri('base:core/authorize.php', array('absolute' => TRUE))->toString();
|
||||
|
|
|
@ -28,4 +28,5 @@ class MockFileTransfer {
|
|||
);
|
||||
return $form;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ function twig_theme_test_theme($existing, $type, $theme, $path) {
|
|||
return $items;
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* Helper function to test PHP variables in the Twig engine.
|
||||
*/
|
||||
function _test_theme_twig_php_values() {
|
||||
|
|
|
@ -29,4 +29,5 @@ class PathProcessor implements InboundPathProcessorInterface {
|
|||
}
|
||||
return $path;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -153,4 +153,5 @@ class TokenReplaceKernelTest extends TokenReplaceKernelTestBase {
|
|||
$this->assertEqual($output, $expected, format_string('Date token %token replaced.', array('%token' => $input)));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
name: Test external CKEditor stylesheets
|
||||
type: theme
|
||||
description: 'A theme that uses an external CKEditor stylesheet.'
|
||||
version: VERSION
|
||||
base theme: false
|
||||
core: 8.x
|
||||
|
||||
ckeditor_stylesheets:
|
||||
- https://fonts.googleapis.com/css?family=Open+Sans
|
|
@ -0,0 +1,9 @@
|
|||
name: Test protocol-relative CKEditor stylesheets
|
||||
type: theme
|
||||
description: 'A theme that uses a protocol-relative CKEditor stylesheet.'
|
||||
version: VERSION
|
||||
base theme: false
|
||||
core: 8.x
|
||||
|
||||
ckeditor_stylesheets:
|
||||
- //fonts.googleapis.com/css?family=Open+Sans
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* @file
|
||||
* Test CSS asset file for test_ckeditor_stylesheets_relative.theme.
|
||||
*/
|
|
@ -0,0 +1,9 @@
|
|||
name: Test relative CKEditor stylesheets
|
||||
type: theme
|
||||
description: 'A theme that uses a relative CKEditor stylesheet.'
|
||||
version: VERSION
|
||||
base theme: false
|
||||
core: 8.x
|
||||
|
||||
ckeditor_stylesheets:
|
||||
- css/yokotsoko.css
|
Reference in a new issue