LeafletViewsSettingsTest.php in Geolocation Field 8.3
File
modules/geolocation_leaflet/tests/src/Functional/LeafletViewsSettingsTest.php
View source
<?php
namespace Drupal\Tests\geolocation_leaflet\Functional;
use Drupal\Tests\BrowserTestBase;
class LeafletViewsSettingsTest extends BrowserTestBase {
public static $modules = [
'node',
'field',
'views',
'taxonomy',
'geolocation',
'geolocation_demo',
'geolocation_leaflet',
'geolocation_leaflet_demo',
'views_ui',
];
protected $defaultTheme = 'stark';
public function testViewsAdmin() {
$permissions = [
'access administration pages',
'administer views',
];
$admin_user = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/structure/views/view/geolocation_demo_leaflet_common_map');
$this
->clickLink('Settings');
$edit = [
'style_options[centre][fit_bounds][enable]' => 1,
];
$this
->submitForm($edit, 'Apply');
}
}