public function GmapViewsTestCase::_testGmapViews in GMap Module 7.2
File
- gmap_test/
tests/ gmap_test.test, line 48
Class
- GmapViewsTestCase
- WebTest tests for gmap_test.module.
Code
public function _testGmapViews() {
//@todo fix gmap_views tests
return;
// login with user
$this->privileged_user = $this
->drupalCreateUser(array_keys(module_invoke_all('permission')));
$this
->drupalLogin($this->privileged_user);
// array for form
$edit = array();
// page view
$this
->drupalPost('admin/structure/views/view/gmap_test_places/edit/page', $edit, t('Save'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/page/style_plugin', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/page/style_options', $edit, t('Apply'));
$this
->drupalGet('admin/structure/views/nojs/display/gmap_test_places/page/style_options');
$this
->assertText(t('Enter a macro. If left unchanged, it takes the default settings from'));
$this
->assertRaw(t('Enter a macro. If left unchanged, it takes the default settings from <a href="!link">/admin/config/services/gmap</a>', array(
'!link' => url('admin/config/services/gmap'),
)));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/page/relationship/field_mylocation_target_id', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/page/field/latitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/page/field/longitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/page/field/field_mygeofield', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/page/field/field_mylatitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/page/field/field_mylongitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/page/field/field_mygeofield_1', $edit, t('Apply'));
// table view
$this
->drupalPost('admin/structure/views/view/gmap_test_places/edit/block_table', $edit, t('Save'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_table/relationship/field_mylocation_target_id', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_table/field/latitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_table/field/longitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_table/field/field_mygeofield', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_table/field/field_mylatitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_table/field/field_mylongitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_table/field/field_mygeofield_1', $edit, t('Apply'));
// block_geofield view
$this
->drupalPost('admin/structure/views/view/gmap_test_places/edit/block_geofield', $edit, t('Save'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_geofield/style_plugin', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_geofield/style_options', $edit, t('Apply'));
$this
->drupalGet('admin/structure/views/nojs/display/gmap_test_places/block_geofield/style_options');
$this
->assertText(t('Enter a macro. If left unchanged, it takes the default settings from'));
$this
->assertRaw(t('Enter a macro. If left unchanged, it takes the default settings from <a href="!link">/admin/config/services/gmap</a>', array(
'!link' => url('admin/config/services/gmap'),
)));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_geofield/relationship/field_mylocation_target_id', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_geofield/field/latitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_geofield/field/longitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_geofield/field/field_mygeofield', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_geofield/field/field_mylatitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_geofield/field/field_mylongitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_geofield/field/field_mygeofield_1', $edit, t('Apply'));
// block_location view
$this
->drupalPost('admin/structure/views/view/gmap_test_places/edit/block_location', $edit, t('Save'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_location/style_plugin', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_location/style_options', $edit, t('Apply'));
$this
->drupalGet('admin/structure/views/nojs/display/gmap_test_places/block_location/style_options');
$this
->assertText(t('Enter a macro. If left unchanged, it takes the default settings from'));
$this
->assertRaw(t('Enter a macro. If left unchanged, it takes the default settings from <a href="!link">/admin/config/services/gmap</a>', array(
'!link' => url('admin/config/services/gmap'),
)));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_location/relationship/field_mylocation_target_id', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_location/field/latitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_location/field/longitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_location/field/field_mygeofield', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_location/field/field_mylatitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_location/field/field_mylongitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_location/field/field_mygeofield_1', $edit, t('Apply'));
// block_field view
$this
->drupalPost('admin/structure/views/view/gmap_test_places/edit/block_field', $edit, t('Save'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_field/style_plugin', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_field/style_options', $edit, t('Apply'));
$this
->drupalGet('admin/structure/views/nojs/display/gmap_test_places/block_field/style_options');
$this
->assertText(t('Enter a macro. If left unchanged, it takes the default settings from'));
$this
->assertRaw(t('Enter a macro. If left unchanged, it takes the default settings from <a href="!link">/admin/config/services/gmap</a>', array(
'!link' => url('admin/config/services/gmap'),
)));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_field/relationship/field_mylocation_target_id', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_field/field/latitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_field/field/longitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_field/field/field_mygeofield', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_field/field/field_mylatitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_field/field/field_mylongitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_field/field/field_mygeofield_1', $edit, t('Apply'));
// block_2 view
$this
->drupalPost('admin/structure/views/view/gmap_test_places/edit/block_2', $edit, t('Save'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_2/style_plugin', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_2/style_options', $edit, t('Apply'));
$this
->drupalGet('admin/structure/views/nojs/display/gmap_test_places/block_2/style_options');
$this
->assertText(t('Enter a macro. If left unchanged, it takes the default settings from'));
$this
->assertRaw(t('Enter a macro. If left unchanged, it takes the default settings from <a href="!link">/admin/config/services/gmap</a>', array(
'!link' => url('admin/config/services/gmap'),
)));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_2/relationship/field_mylocation_target_id', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_2/field/latitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_2/field/longitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_2/field/field_mygeofield', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_2/field/field_mylatitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_2/field/field_mylongitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_2/field/field_mygeofield_1', $edit, t('Apply'));
// block_3 view
$this
->drupalPost('admin/structure/views/view/gmap_test_places/edit/block_3', $edit, t('Save'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_3/style_plugin', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/display/gmap_test_places/block_3/style_options', $edit, t('Apply'));
$this
->drupalGet('admin/structure/views/nojs/display/gmap_test_places/block_3/style_options');
$this
->assertText(t('Enter a macro. If left unchanged, it takes the default settings from'));
$this
->assertRaw(t('Enter a macro. If left unchanged, it takes the default settings from <a href="!link">/admin/config/services/gmap</a>', array(
'!link' => url('admin/config/services/gmap'),
)));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_3/relationship/field_mylocation_target_id', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_3/field/latitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_3/field/longitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_3/field/field_mygeofield', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_3/field/field_mylatitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_3/field/field_mylongitude', $edit, t('Apply'));
$this
->drupalPost('admin/structure/views/nojs/config-item/gmap_test_places/block_3/field/field_mygeofield_1', $edit, t('Apply'));
}