Commit 45089bee authored by Marcin Grabias's avatar Marcin Grabias
Browse files

Issue #3290442 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent 7268c84e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
  },
  "license": "GPL-2.0+",
  "require": {
    "drupal/core": "^8 || ^9"
    "drupal/core": "^9.1 || ^10"
  },
  "require-dev": {
    "drupal/views_bulk_operations": "~3.0"
+2 −2
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class ViewsBulkEditActionTest extends NodeTestBase {
   *
   * @var array
   */
  public static $modules = ['views_bulk_edit', 'node_test_views'];
  protected static $modules = ['views_bulk_edit', 'node_test_views'];

  /**
   * Views used by this test.
@@ -39,7 +39,7 @@ class ViewsBulkEditActionTest extends NodeTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp($import_test_views = TRUE, $modules = ['node_test_views']) {
  protected function setUp($import_test_views = TRUE, $modules = ['node_test_views']): void {
    parent::setUp($import_test_views, $modules);
    $this->createContentType(['type' => 'page', 'name' => 'Page']);
    $this->createContentType(['type' => 'article', 'name' => 'Article']);
+6 −5
Original line number Diff line number Diff line
@@ -14,12 +14,12 @@ class ViewsBulkEditModifyEntityValuesTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stable';
  protected $defaultTheme = 'stark';

  /**
   * {@inheritdoc}
   */
  public static $modules = [
  protected static $modules = [
    'node',
    'views',
    'views_bulk_operations',
@@ -30,7 +30,7 @@ class ViewsBulkEditModifyEntityValuesTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();

    // Create some nodes for testing.
@@ -115,12 +115,13 @@ class ViewsBulkEditModifyEntityValuesTest extends BrowserTestBase {
      'views_bulk_operations_bulk_form[1]' => TRUE,
      'views_bulk_operations_bulk_form[2]' => TRUE,
    ];
    $this->drupalPostForm('views-bulk-operations-test-advanced', $edit, t('Apply to selected items'));
    $this->drupalGet('views-bulk-operations-test-advanced');
    $this->submitForm($edit, t('Apply to selected items'));

    // Post the configuration form: modify status and text value field on the
    // article content type.
    $expected_text_value = 'some text';
    $this->drupalPostForm(NULL, [
    $this->submitForm([
      'node[article][_field_selector][status]' => TRUE,
      'node[article][status][value]' => FALSE,
      'node[page][_field_selector][status]' => TRUE,
+1 −1
Original line number Diff line number Diff line
@@ -2,6 +2,6 @@ type: module
name: 'Views Bulk Edit'
description: 'Allows bulk edition of entity field values.'
package: 'Views Bulk Operations'
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.1 || ^10
test_dependencies:
  - drupal:views_bulk_operations