You are here

public function GeolocationViewsSettingsTest::testViewsMapSettings in Geolocation Field 8.3

Tests the Views admin UI and field handlers.

File

tests/src/Functional/GeolocationViewsSettingsTest.php, line 39

Class

GeolocationViewsSettingsTest
Tests the Views integration.

Namespace

Drupal\Tests\geolocation\Functional

Code

public function testViewsMapSettings() {
  $permissions = [
    'access administration pages',
    'administer views',
  ];
  $admin_user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalGet('admin/structure/views/view/geolocation_demo_common_map');

  // Add click sorting for all fields where this is possible.
  $this
    ->clickLink('Settings');
  $edit = [
    'style_options[centre][fit_bounds][enable]' => 1,
  ];
  $this
    ->submitForm($edit, 'Apply');
}