-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3056543 by plach, jungle, Berdir, catch, xjm, amateescu: taxon…
…omy_post_update_make_taxonomy_term_revisionable() and the menu link content equivalent fail when entities have no default translation
- Loading branch information
catch
committed
Mar 11, 2020
1 parent
e67272f
commit b1a3f0d
Showing
6 changed files
with
536 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
.../menu_link_content/tests/fixtures/update/drupal-8.menu-link-content-null-data-3056543.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Contains database additions to drupal-8.filled.standard.php.gz for testing | ||
* the upgrade path of https://www.drupal.org/project/drupal/issues/3056543. | ||
*/ | ||
|
||
use Drupal\Core\Database\Database; | ||
|
||
$connection = Database::getConnection(); | ||
|
||
$connection->insert('menu_link_content') | ||
->fields([ | ||
'id' => 997, | ||
'bundle' => 'menu_link_content', | ||
'uuid' => 'ea32f399-b53b-416c-81a9-e66204236c97', | ||
'langcode' => 'en', | ||
]) | ||
->execute(); | ||
$connection->insert('menu_link_content_data') | ||
->fields([ | ||
'id' => 997, | ||
'bundle' => 'menu_link_content', | ||
'langcode' => 'en', | ||
'enabled' => 1, | ||
'title' => 'menu_link_997', | ||
'menu_name' => 'test-menu', | ||
'link__uri' => 'https://drupal.org', | ||
'link__title' => '', | ||
'link__options' => 'a:0:{}', | ||
'external' => 0, | ||
'rediscover' => 0, | ||
'weight' => 0, | ||
'expanded' => 0, | ||
'changed' => 1579555997, | ||
'default_langcode' => 0, | ||
]) | ||
->execute(); | ||
|
||
$connection->insert('menu_link_content') | ||
->fields([ | ||
'id' => 998, | ||
'bundle' => 'menu_link_content', | ||
'uuid' => 'ea32f399-b53b-416c-81a9-e66204236c98', | ||
'langcode' => 'en', | ||
]) | ||
->execute(); | ||
$connection->insert('menu_link_content_data') | ||
->fields([ | ||
'id' => 998, | ||
'bundle' => 'menu_link_content', | ||
'langcode' => 'en', | ||
'enabled' => 1, | ||
'title' => 'menu_link_998', | ||
'menu_name' => 'test-menu', | ||
'link__uri' => 'https://drupal.org', | ||
'link__title' => '', | ||
'link__options' => 'a:0:{}', | ||
'external' => 0, | ||
'rediscover' => 0, | ||
'weight' => 0, | ||
'expanded' => 0, | ||
'changed' => 1579555997, | ||
'default_langcode' => 0, | ||
]) | ||
->execute(); | ||
|
||
$connection->insert('menu_link_content') | ||
->fields([ | ||
'id' => 999, | ||
'bundle' => 'menu_link_content', | ||
'uuid' => 'ea32f399-b53b-416c-81a9-e66204236c99', | ||
'langcode' => 'en', | ||
]) | ||
->execute(); | ||
$connection->insert('menu_link_content_data') | ||
->fields([ | ||
'id' => 999, | ||
'bundle' => 'menu_link_content', | ||
'langcode' => 'en', | ||
'enabled' => 1, | ||
'title' => 'menu_link_999', | ||
'menu_name' => 'test-menu', | ||
'link__uri' => 'https://drupal.org', | ||
'link__title' => '', | ||
'link__options' => 'a:0:{}', | ||
'external' => 0, | ||
'rediscover' => 0, | ||
'weight' => 0, | ||
'expanded' => 0, | ||
'changed' => 1579555997, | ||
'default_langcode' => 0, | ||
]) | ||
->execute(); | ||
$connection->insert('menu_link_content_data') | ||
->fields([ | ||
'id' => 999, | ||
'bundle' => 'menu_link_content', | ||
'langcode' => 'es', | ||
'enabled' => 1, | ||
'title' => 'menu_link_999-es', | ||
'menu_name' => 'test-menu', | ||
'link__uri' => 'https://drupal.org', | ||
'link__title' => '', | ||
'link__options' => 'a:0:{}', | ||
'external' => 0, | ||
'rediscover' => 0, | ||
'weight' => 0, | ||
'expanded' => 0, | ||
'changed' => 1579555997, | ||
'default_langcode' => 1, | ||
]) | ||
->execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.