Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.15.193.71
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
views /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
comment
[ DIR ]
drwxr-xr-x
field
[ DIR ]
drwxr-xr-x
handlers
[ DIR ]
drwxr-xr-x
node
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
styles
[ DIR ]
drwxr-xr-x
taxonomy
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
test_handlers
[ DIR ]
drwxr-xr-x
test_plugins
[ DIR ]
drwxr-xr-x
user
[ DIR ]
drwxr-xr-x
views_access.test
9.88
KB
-rw-r--r--
views_analyze.test
1.29
KB
-rw-r--r--
views_argument_default.test
5.33
KB
-rw-r--r--
views_argument_validator.test
4.41
KB
-rw-r--r--
views_basic.test
4.45
KB
-rw-r--r--
views_cache.test
9.45
KB
-rw-r--r--
views_cache.test.css
100
B
-rw-r--r--
views_cache.test.js
100
B
-rw-r--r--
views_exposed_form.test
7.75
KB
-rw-r--r--
views_glossary.test
1.4
KB
-rw-r--r--
views_groupby.test
14.15
KB
-rw-r--r--
views_handlers.test
5.61
KB
-rw-r--r--
views_module.test
9.18
KB
-rw-r--r--
views_pager.test
19.12
KB
-rw-r--r--
views_plugin_localization_test...
893
B
-rw-r--r--
views_query.test
12.12
KB
-rw-r--r--
views_test.info
263
B
-rw-r--r--
views_test.install
219
B
-rw-r--r--
views_test.module
3.03
KB
-rw-r--r--
views_test.views_default.inc
10.5
KB
-rw-r--r--
views_translatable.test
10.01
KB
-rw-r--r--
views_ui.test
38.55
KB
-rw-r--r--
views_upgrade.test
12.64
KB
-rw-r--r--
views_view.test
13.51
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : views_exposed_form.test
<?php /** * @file * Definition of ViewsExposedFormTest. */ /** * Tests exposed forms. */ class ViewsExposedFormTest extends ViewsSqlTest { public static function getInfo() { return array( 'name' => 'Exposed forms', 'description' => 'Test exposed forms functionality.', 'group' => 'Views Plugins', ); } public function setUp() { parent::setUp('views_ui'); module_enable(array('views_ui')); // @TODO Figure out why it's required to clear the cache here. views_module_include('views_default', TRUE); views_get_all_views(TRUE); menu_rebuild(); } /** * Tests, whether and how the reset button can be renamed. */ public function testRenameResetButton() { $account = $this->drupalCreateUser(); $this->drupalLogin($account); // Create some random nodes. for ($i = 0; $i < 5; $i++) { $this->drupalCreateNode(); } // Look at the page and check the label "reset". $this->drupalGet('test_rename_reset_button'); // Rename the label of the reset button. $view = views_get_view('test_rename_reset_button'); $view->set_display('default'); $exposed_form = $view->display_handler->get_option('exposed_form'); $exposed_form['options']['reset_button_label'] = $expected_label = $this->randomName(); $exposed_form['options']['reset_button'] = TRUE; $view->display_handler->set_option('exposed_form', $exposed_form); $view->save(); views_invalidate_cache(); // Look whether ther reset button label changed. $this->drupalGet('test_rename_reset_button'); $this->helperButtonHasLabel('edit-reset', $expected_label); } /** * Tests the admin interface of exposed filter and sort items. */ function testExposedAdminUi() { $admin_user = $this->drupalCreateUser(array('administer views', 'administer site configuration')); $this->drupalLogin($admin_user); menu_rebuild(); $edit = array(); $this->drupalGet('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/filter/type'); // Be sure that the button is called exposed. $this->helperButtonHasLabel('edit-options-expose-button-button', t('Expose filter')); // The first time the filter UI is displayed, the operator and the // value forms should be shown. $this->assertFieldById('edit-options-operator-in', '', 'Operator In exists'); $this->assertFieldById('edit-options-operator-not-in', '', 'Operator Not In exists'); $this->assertFieldById('edit-options-value-page', '', 'Checkbox for Page exists'); $this->assertFieldById('edit-options-value-article', '', 'Checkbox for Article exists'); // Click the Expose filter button. $this->drupalPost('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/filter/type', $edit, t('Expose filter')); // Check the label of the expose button. $this->helperButtonHasLabel('edit-options-expose-button-button', t('Hide filter')); // Check the label of the grouped exposed button $this->helperButtonHasLabel('edit-options-group-button-button', t('Grouped filters')); // After Expose the filter, Operator and Value should be still here $this->assertFieldById('edit-options-operator-in', '', 'Operator In exists'); $this->assertFieldById('edit-options-operator-not-in', '', 'Operator Not In exists'); $this->assertFieldById('edit-options-value-page', '', 'Checkbox for Page exists'); $this->assertFieldById('edit-options-value-article', '', 'Checkbox for Article exists'); // Check the validations of the filter handler. $edit = array(); $edit['options[expose][identifier]'] = ''; $this->drupalPost(NULL, $edit, t('Apply')); $this->assertText(t('The identifier is required if the filter is exposed.')); $edit = array(); $edit['options[expose][identifier]'] = 'value'; $this->drupalPost(NULL, $edit, t('Apply')); $this->assertText(t('This identifier is not allowed.')); // Now check the sort criteria. $this->drupalGet('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/sort/created'); $this->helperButtonHasLabel('edit-options-expose-button-button', t('Expose sort')); $this->assertNoFieldById('edit-options-expose-label', '', t('Make sure no label field is shown')); // Click the Grouped Filters button. $this->drupalGet('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/filter/type'); $this->drupalPost(NULL, array(), t('Grouped filters')); // After click on 'Grouped Filters' standard operator and value should not be displayed $this->assertNoFieldById('edit-options-operator-in', '', 'Operator In not exists'); $this->assertNoFieldById('edit-options-operator-not-in', '', 'Operator Not In not exists'); $this->assertNoFieldById('edit-options-value-page', '', 'Checkbox for Page not exists'); $this->assertNoFieldById('edit-options-value-article', '', 'Checkbox for Article not exists'); // Check that after click on 'Grouped Filters', a new button is shown to // add more items to the list. $this->helperButtonHasLabel('edit-options-group-info-add-group', t('Add another item')); // Create a grouped filter $this->drupalGet('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/filter/type'); $edit = array(); $edit["options[group_info][group_items][1][title]"] = 'Is Article'; $edit["options[group_info][group_items][1][value][article]"] = 'article'; $edit["options[group_info][group_items][2][title]"] = 'Is Page'; $edit["options[group_info][group_items][2][value][page]"] = TRUE; $edit["options[group_info][group_items][3][title]"] = 'Is Page and Article'; $edit["options[group_info][group_items][3][value][article]"] = TRUE; $edit["options[group_info][group_items][3][value][page]"] = TRUE; $this->drupalPost(NULL, $edit, t('Apply')); // Validate that all the titles are defined for each group $this->drupalGet('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/filter/type'); $edit = array(); $edit["options[group_info][group_items][1][title]"] = 'Is Article'; $edit["options[group_info][group_items][1][value][article]"] = TRUE; // This should trigger an error $edit["options[group_info][group_items][2][title]"] = ''; $edit["options[group_info][group_items][2][value][page]"] = TRUE; $edit["options[group_info][group_items][3][title]"] = 'Is Page and Article'; $edit["options[group_info][group_items][3][value][article]"] = TRUE; $edit["options[group_info][group_items][3][value][page]"] = TRUE; $this->drupalPost(NULL, $edit, t('Apply')); $this->assertRaw(t('The title is required if value for this item is defined.'), t('Group items should have a title')); // Un-Expose the filter $this->drupalGet('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/filter/type'); $this->drupalPost(NULL, array(), t('Hide filter')); // After Un-Expose the filter, Operator and Value should be shown again $this->assertFieldById('edit-options-operator-in', '', 'Operator In exists after hide filter'); $this->assertFieldById('edit-options-operator-not-in', '', 'Operator Not In exists after hide filter'); $this->assertFieldById('edit-options-value-page', '', 'Checkbox for Page exists after hide filter'); $this->assertFieldById('edit-options-value-article', '', 'Checkbox for Article exists after hide filter'); // Click the Expose sort button. $edit = array(); $this->drupalPost('admin/structure/views/nojs/config-item/test_exposed_admin_ui/default/sort/created', $edit, t('Expose sort')); // Check the label of the expose button. $this->helperButtonHasLabel('edit-options-expose-button-button', t('Hide sort')); $this->assertFieldById('edit-options-expose-label', '', t('Make sure a label field is shown')); } }
Close