Commit eeae2003 authored by Nejc Koporec's avatar Nejc Koporec Committed by Sascha Grossenbacher
Browse files

Issue #3297813 by nkoporec, Berdir, Project Update Bot, sharayurajput:...

Issue #3297813 by nkoporec, Berdir, Project Update Bot, sharayurajput: Automated Drupal 10 compatibility fixes
parent b92b7092
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class ParagraphsLibraryItemTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'starterkit_theme';

  /**
   * {@inheritdoc}
+3 −3
Original line number Diff line number Diff line
@@ -35,8 +35,8 @@ class ParagraphsLibraryTest extends ParagraphsTestBase {
   */
  public function testLibraryItems() {
    // Set default theme.
    \Drupal::service('theme_installer')->install(['bartik']);
    $this->config('system.theme')->set('default', 'bartik')->save();
    \Drupal::service('theme_installer')->install(['claro']);
    $this->config('system.theme')->set('default', 'claro')->save();
    $this->loginAsAdmin(['create paragraphed_test content', 'edit any paragraphed_test content', 'administer paragraphs library']);

    // Add a Paragraph type with a text field.
@@ -54,7 +54,7 @@ class ParagraphsLibraryTest extends ParagraphsTestBase {
    ];
    $this->submitForm($edit, 'Save');
    $this->clickLink('re usable paragraph label');
    $this->assertSession()->responseContains('bartik/css/base/elements.css');
    $this->assertSession()->responseContains('claro/css/base/elements.css');
    $this->clickLink('Edit');
    $this->assertSession()->responseNotContains('class="messages messages--warning"');
    $items = \Drupal::entityQuery('paragraphs_library_item')
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class ParagraphsContentModerationTest extends WebDriverTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'starterkit_theme';

  /**
   * {@inheritdoc}
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ class ParagraphsLibraryItemEntityBrowserTest extends EntityBrowserWebDriverTestB
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'starterkit_theme';

  /**
   * Tests a flow of adding/removing references with paragraphs.
+0 −6
Original line number Diff line number Diff line
@@ -21,12 +21,6 @@ class MigrateUiParagraphsTest extends MigrateUiParagraphsTestBase {
   * @dataProvider providerParagraphsMigrate
   */
  public function testParagraphsMigrate($node_migrate_type_classic) {
    // Drupal 8.8.x only has 'classic' node migrations.
    // @see https://www.drupal.org/node/3105503
    if (!$node_migrate_type_classic && version_compare(\Drupal::VERSION, '8.9', '<')) {
      $this->pass("Drupal 8.8.x has only the 'classic' node migration.");
      return;
    }
    $this->setClassicNodeMigration($node_migrate_type_classic);
    $this->assertMigrateUpgradeViaUi();
    $this->assertParagraphsMigrationResults();
Loading