public function LeafletViewsSettingsTest::testViewsAdmin in Geolocation Field 8.3
Tests the Views admin UI and field handlers.
File
- modules/
geolocation_leaflet/ tests/ src/ Functional/ LeafletViewsSettingsTest.php, line 39
Class
- LeafletViewsSettingsTest
- Tests the Views integration.
Namespace
Drupal\Tests\geolocation_leaflet\FunctionalCode
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');
// 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');
}