Commit 2788816c authored by Italo Mairo's avatar Italo Mairo Committed by Italo Mairo
Browse files

Issue #3291804 by itamair: Drupal 10 compatibility fixes

parent 229e6679
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -31,11 +31,6 @@
        "davedevelopment/stiphle": "^0.9.2"
    },
    "require-dev": {
        "phpro/grumphp": "^0.12.1",
        "squizlabs/php_codesniffer": "^2.7",
        "sensiolabs/security-checker": "^4.1",
        "phpunit/phpunit": "^5.7|^6.5",
        "drupal/coder": "^8.2",
        "geo6/geocoder-php-addok-provider": "^1.0",
        "geo6/geocoder-php-geopunt-provider": "^1.0",
        "geo6/geocoder-php-spw-provider":  "^1.0",
+8 −16
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ class GeocoderTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  protected string $defaultTheme = 'stark';
  protected $defaultTheme = 'stark';

  /**
   * {@inheritdoc}
@@ -48,7 +48,7 @@ class GeocoderTest extends BrowserTestBase {

    // Generator test:
    $this->drupalGet('admin/config/system/geocoder');
    $this->assertResponse(200);
    $this->assertSession()->statusCodeEquals(200);
  }

  /**
@@ -61,23 +61,15 @@ class GeocoderTest extends BrowserTestBase {
    // Test form structure.
    $this->drupalLogin($this->user);
    $this->drupalGet('admin/config/system/geocoder');
    $this->assertResponse(200);
    $config = $this->config('geocoder.settings');
    $this->assertFieldByName(
      'cache',
      $config->get('cache')
    );
    $this->assertSession()->statusCodeEquals(200);
    $this->assertSession()->fieldExists('cache');

    $this->drupalPostForm(NULL, [
      'cache' => FALSE,
    ], 'Save configuration');
    $this->submitForm([], 'Save configuration');

    $this->drupalGet('admin/config/system/geocoder');
    $this->assertResponse(200);
    $this->assertFieldByName(
      'cache',
      FALSE
    );
    $this->assertSession()->statusCodeEquals(200);
    $this->assertSession()->fieldExists('cache');

  }

}