Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
304
Merge Requests
304
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
41ae1ead
Commit
41ae1ead
authored
Dec 04, 2012
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1856272
by tim.plunkett: Speed up tests by only installing the views used by that tests.
parent
52218869
Changes
154
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
154 changed files
with
919 additions
and
416 deletions
+919
-416
core/modules/views/lib/Drupal/views/Tests/BasicTest.php
core/modules/views/lib/Drupal/views/Tests/BasicTest.php
+9
-50
core/modules/views/lib/Drupal/views/Tests/Comment/ArgumentUserUIDTest.php
...ws/lib/Drupal/views/Tests/Comment/ArgumentUserUIDTest.php
+11
-3
core/modules/views/lib/Drupal/views/Tests/Comment/CommentTestBase.php
.../views/lib/Drupal/views/Tests/Comment/CommentTestBase.php
+0
-7
core/modules/views/lib/Drupal/views/Tests/Comment/FilterUserUIDTest.php
...iews/lib/Drupal/views/Tests/Comment/FilterUserUIDTest.php
+13
-4
core/modules/views/lib/Drupal/views/Tests/Entity/FieldEntityTest.php
...s/views/lib/Drupal/views/Tests/Entity/FieldEntityTest.php
+6
-0
core/modules/views/lib/Drupal/views/Tests/Field/HandlerFieldFieldTest.php
...ws/lib/Drupal/views/Tests/Field/HandlerFieldFieldTest.php
+33
-17
core/modules/views/lib/Drupal/views/Tests/Handler/AreaTest.php
...modules/views/lib/Drupal/views/Tests/Handler/AreaTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php
...les/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentNullTest.php
...views/lib/Drupal/views/Tests/Handler/ArgumentNullTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentStringTest.php
...ews/lib/Drupal/views/Tests/Handler/ArgumentStringTest.php
+8
-1
core/modules/views/lib/Drupal/views/Tests/Handler/FieldBooleanTest.php
...views/lib/Drupal/views/Tests/Handler/FieldBooleanTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldCounterTest.php
...views/lib/Drupal/views/Tests/Handler/FieldCounterTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldCustomTest.php
.../views/lib/Drupal/views/Tests/Handler/FieldCustomTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldDateTest.php
...es/views/lib/Drupal/views/Tests/Handler/FieldDateTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldFileSizeTest.php
...iews/lib/Drupal/views/Tests/Handler/FieldFileSizeTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldUnitTest.php
...es/views/lib/Drupal/views/Tests/Handler/FieldUnitTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldUrlTest.php
...les/views/lib/Drupal/views/Tests/Handler/FieldUrlTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php
...les/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FieldXssTest.php
...les/views/lib/Drupal/views/Tests/Handler/FieldXssTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FilterCombineTest.php
...iews/lib/Drupal/views/Tests/Handler/FilterCombineTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FilterDateTest.php
...s/views/lib/Drupal/views/Tests/Handler/FilterDateTest.php
+26
-13
core/modules/views/lib/Drupal/views/Tests/Handler/FilterEqualityTest.php
...ews/lib/Drupal/views/Tests/Handler/FilterEqualityTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FilterInOperatorTest.php
...s/lib/Drupal/views/Tests/Handler/FilterInOperatorTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FilterNumericTest.php
...iews/lib/Drupal/views/Tests/Handler/FilterNumericTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/FilterStringTest.php
...views/lib/Drupal/views/Tests/Handler/FilterStringTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/HandlerAliasTest.php
...views/lib/Drupal/views/Tests/Handler/HandlerAliasTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/HandlerTest.php
...ules/views/lib/Drupal/views/Tests/Handler/HandlerTest.php
+10
-2
core/modules/views/lib/Drupal/views/Tests/Handler/RelationshipTest.php
...views/lib/Drupal/views/Tests/Handler/RelationshipTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/SortDateTest.php
...les/views/lib/Drupal/views/Tests/Handler/SortDateTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/SortRandomTest.php
...s/views/lib/Drupal/views/Tests/Handler/SortRandomTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Handler/SortTest.php
...modules/views/lib/Drupal/views/Tests/Handler/SortTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Language/ArgumentLanguageTest.php
.../lib/Drupal/views/Tests/Language/ArgumentLanguageTest.php
+9
-1
core/modules/views/lib/Drupal/views/Tests/Language/FieldLanguageTest.php
...ews/lib/Drupal/views/Tests/Language/FieldLanguageTest.php
+9
-1
core/modules/views/lib/Drupal/views/Tests/Language/FilterLanguageTest.php
...ws/lib/Drupal/views/Tests/Language/FilterLanguageTest.php
+9
-1
core/modules/views/lib/Drupal/views/Tests/Language/LanguageTestBase.php
...iews/lib/Drupal/views/Tests/Language/LanguageTestBase.php
+3
-10
core/modules/views/lib/Drupal/views/Tests/ModuleTest.php
core/modules/views/lib/Drupal/views/Tests/ModuleTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Node/FieldTypeTest.php
...dules/views/lib/Drupal/views/Tests/Node/FieldTypeTest.php
+8
-9
core/modules/views/lib/Drupal/views/Tests/Node/FilterUidRevisionTest.php
...ews/lib/Drupal/views/Tests/Node/FilterUidRevisionTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Node/RevisionRelationships.php
...ews/lib/Drupal/views/Tests/Node/RevisionRelationships.php
+9
-2
core/modules/views/lib/Drupal/views/Tests/Node/StatusExtraTest.php
...les/views/lib/Drupal/views/Tests/Node/StatusExtraTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Plugin/AccessTest.php
...odules/views/lib/Drupal/views/Tests/Plugin/AccessTest.php
+13
-3
core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php
...ews/lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php
+13
-22
core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentValidatorTest.php
...s/lib/Drupal/views/Tests/Plugin/ArgumentValidatorTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php
...modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php
+23
-56
core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayExtenderTest.php
...ews/lib/Drupal/views/Tests/Plugin/DisplayExtenderTest.php
+9
-2
core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayFeedTest.php
...s/views/lib/Drupal/views/Tests/Plugin/DisplayFeedTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayPageTest.php
...s/views/lib/Drupal/views/Tests/Plugin/DisplayPageTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php
...dules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php
+8
-1
core/modules/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php
...s/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Plugin/FilterTest.php
...odules/views/lib/Drupal/views/Tests/Plugin/FilterTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php
...modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php
+32
-38
core/modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php
...modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php
+15
-10
core/modules/views/lib/Drupal/views/Tests/Plugin/StyleMappingTest.php
.../views/lib/Drupal/views/Tests/Plugin/StyleMappingTest.php
+8
-1
core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php
...modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php
...ws/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/QueryGroupByTest.php
...modules/views/lib/Drupal/views/Tests/QueryGroupByTest.php
+14
-13
core/modules/views/lib/Drupal/views/Tests/Taxonomy/RelationshipNodeTermDataTest.php
...pal/views/Tests/Taxonomy/RelationshipNodeTermDataTest.php
+6
-14
core/modules/views/lib/Drupal/views/Tests/Taxonomy/RelationshipRepresentativeNode.php
...l/views/Tests/Taxonomy/RelationshipRepresentativeNode.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/TokenReplaceTest.php
...modules/views/lib/Drupal/views/Tests/TokenReplaceTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/DefaultViewsTest.php
...ules/views/lib/Drupal/views/Tests/UI/DefaultViewsTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/DisplayExtenderUITest.php
...views/lib/Drupal/views/Tests/UI/DisplayExtenderUITest.php
+8
-1
core/modules/views/lib/Drupal/views/Tests/UI/DisplayPath.php
core/modules/views/lib/Drupal/views/Tests/UI/DisplayPath.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php
core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/GroupByTest.php
core/modules/views/lib/Drupal/views/Tests/UI/GroupByTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/HandlerTest.php
core/modules/views/lib/Drupal/views/Tests/UI/HandlerTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php
core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/QueryTest.php
core/modules/views/lib/Drupal/views/Tests/UI/QueryTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/UI/RedirectTest.php
.../modules/views/lib/Drupal/views/Tests/UI/RedirectTest.php
+14
-5
core/modules/views/lib/Drupal/views/Tests/UI/RowUITest.php
core/modules/views/lib/Drupal/views/Tests/UI/RowUITest.php
+13
-5
core/modules/views/lib/Drupal/views/Tests/UI/StorageTest.php
core/modules/views/lib/Drupal/views/Tests/UI/StorageTest.php
+11
-3
core/modules/views/lib/Drupal/views/Tests/UI/StyleUITest.php
core/modules/views/lib/Drupal/views/Tests/UI/StyleUITest.php
+13
-5
core/modules/views/lib/Drupal/views/Tests/User/AccessPermissionTest.php
...iews/lib/Drupal/views/Tests/User/AccessPermissionTest.php
+9
-2
core/modules/views/lib/Drupal/views/Tests/User/AccessRoleTest.php
...ules/views/lib/Drupal/views/Tests/User/AccessRoleTest.php
+9
-2
core/modules/views/lib/Drupal/views/Tests/User/ArgumentDefaultTest.php
...views/lib/Drupal/views/Tests/User/ArgumentDefaultTest.php
+10
-10
core/modules/views/lib/Drupal/views/Tests/User/ArgumentValidateTest.php
...iews/lib/Drupal/views/Tests/User/ArgumentValidateTest.php
+9
-1
core/modules/views/lib/Drupal/views/Tests/User/HandlerArgumentUserUidTest.php
...ib/Drupal/views/Tests/User/HandlerArgumentUserUidTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/User/HandlerFieldUserNameTest.php
.../lib/Drupal/views/Tests/User/HandlerFieldUserNameTest.php
+9
-9
core/modules/views/lib/Drupal/views/Tests/User/HandlerFilterUserNameTest.php
...lib/Drupal/views/Tests/User/HandlerFilterUserNameTest.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/User/RelationshipRepresentativeNode.php
...rupal/views/Tests/User/RelationshipRepresentativeNode.php
+7
-0
core/modules/views/lib/Drupal/views/Tests/ViewElementTest.php
.../modules/views/lib/Drupal/views/Tests/ViewElementTest.php
+9
-1
core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php
...dules/views/lib/Drupal/views/Tests/ViewExecutableTest.php
+15
-24
core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php
core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php
+2
-66
core/modules/views/lib/Drupal/views/Tests/ViewTestData.php
core/modules/views/lib/Drupal/views/Tests/ViewTestData.php
+46
-0
core/modules/views/lib/Drupal/views/Tests/ViewUnitTestBase.php
...modules/views/lib/Drupal/views/Tests/ViewUnitTestBase.php
+2
-1
core/modules/views/tests/views_test_config/test_views/views.view.test_access_dynamic.yml
...test_config/test_views/views.view.test_access_dynamic.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_access_none.yml
...ws_test_config/test_views/views.view.test_access_none.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_access_perm.yml
...ws_test_config/test_views/views.view.test_access_perm.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_access_role.yml
...ws_test_config/test_views/views.view.test_access_role.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_access_static.yml
..._test_config/test_views/views.view.test_access_static.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_aggregate_count.yml
...est_config/test_views/views.view.test_aggregate_count.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_alias.yml
...ts/views_test_config/test_views/views.view.test_alias.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_argument_default_current_user.yml
...t_views/views.view.test_argument_default_current_user.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_argument_default_fixed.yml
...fig/test_views/views.view.test_argument_default_fixed.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_cache.yml
...ts/views_test_config/test_views/views.view.test_cache.yml
+42
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_click_sort.yml
...ews_test_config/test_views/views.view.test_click_sort.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_comment_user_uid.yml
...st_config/test_views/views.view.test_comment_user_uid.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_destroy.yml
.../views_test_config/test_views/views.view.test_destroy.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_display.yml
.../views_test_config/test_views/views.view.test_display.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_example_area.yml
...s_test_config/test_views/views.view.test_example_area.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_executable_displays.yml
...config/test_views/views.view.test_executable_displays.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_exposed_admin_ui.yml
...st_config/test_views/views.view.test_exposed_admin_ui.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_exposed_form.yml
...s_test_config/test_views/views.view.test_exposed_form.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_feed_display.yml
...s_test_config/test_views/views.view.test_feed_display.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_field_classes.yml
..._test_config/test_views/views.view.test_field_classes.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_field_get_entity.yml
...st_config/test_views/views.view.test_field_get_entity.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_field_output.yml
...s_test_config/test_views/views.view.test_field_output.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_field_tokens.yml
...s_test_config/test_views/views.view.test_field_tokens.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_field_type.yml
...ews_test_config/test_views/views.view.test_field_type.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_filter.yml
...s/views_test_config/test_views/views.view.test_filter.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_filter_date_between.yml
...config/test_views/views.view.test_filter_date_between.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_filter_group_override.yml
...nfig/test_views/views.view.test_filter_group_override.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_filter_groups.yml
..._test_config/test_views/views.view.test_filter_groups.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml
...nfig/test_views/views.view.test_filter_in_operator_ui.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_filter_node_uid_revision.yml
...g/test_views/views.view.test_filter_node_uid_revision.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_glossary.yml
...views_test_config/test_views/views.view.test_glossary.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_group_by_count.yml
...test_config/test_views/views.view.test_group_by_count.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_group_by_in_filters.yml
...config/test_views/views.view.test_group_by_in_filters.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_groupwise_term.yml
...test_config/test_views/views.view.test_groupwise_term.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_groupwise_user.yml
...test_config/test_views/views.view.test_groupwise_user.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_handler_relationships.yml
...nfig/test_views/views.view.test_handler_relationships.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_handler_test_access.yml
...config/test_views/views.view.test_handler_test_access.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_node_revision_nid.yml
...t_config/test_views/views.view.test_node_revision_nid.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_node_revision_vid.yml
...t_config/test_views/views.view.test_node_revision_vid.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_page_display.yml
...s_test_config/test_views/views.view.test_page_display.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_pager_full.yml
...ews_test_config/test_views/views.view.test_pager_full.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_pager_none.yml
...ews_test_config/test_views/views.view.test_pager_none.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_pager_some.yml
...ews_test_config/test_views/views.view.test_pager_some.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_plugin_argument_default_current_user.yml
.../views.view.test_plugin_argument_default_current_user.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_preview.yml
.../views_test_config/test_views/views.view.test_preview.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_redirect_view.yml
..._test_config/test_views/views.view.test_redirect_view.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_reset_button.yml
...s_test_config/test_views/views.view.test_reset_button.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_simple_argument.yml
...est_config/test_views/views.view.test_simple_argument.yml
+86
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_status_extra.yml
...s_test_config/test_views/views.view.test_status_extra.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_store_pager_settings.yml
...onfig/test_views/views.view.test_store_pager_settings.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_style_mapping.yml
..._test_config/test_views/views.view.test_style_mapping.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_taxonomy_node_term_data.yml
...ig/test_views/views.view.test_taxonomy_node_term_data.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_tokens.yml
...s/views_test_config/test_views/views.view.test_tokens.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_user_name.yml
...iews_test_config/test_views/views.view.test_user_name.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_user_relationship.yml
...t_config/test_views/views.view.test_user_relationship.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_user_uid_argument.yml
...t_config/test_views/views.view.test_user_uid_argument.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view.yml
...sts/views_test_config/test_views/views.view.test_view.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_argument_validate_numeric.yml
..._views/views.view.test_view_argument_validate_numeric.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_argument_validate_php.yml
...test_views/views.view.test_view_argument_validate_php.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_argument_validate_user.yml
...est_views/views.view.test_view_argument_validate_user.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_delete.yml
...ws_test_config/test_views/views.view.test_view_delete.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_fieldapi.yml
..._test_config/test_views/views.view.test_view_fieldapi.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_handler_weight.yml
...config/test_views/views.view.test_view_handler_weight.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_pager_full_zero_items_per_page.yml
...s/views.view.test_view_pager_full_zero_items_per_page.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_view_status.yml
...ws_test_config/test_views/views.view.test_view_status.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_views_groupby_save.yml
..._config/test_views/views.view.test_views_groupby_save.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_views_handler_field_user_name.yml
...t_views/views.view.test_views_handler_field_user_name.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_views_move_to_field.yml
...config/test_views/views.view.test_views_move_to_field.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_views_move_to_handler.yml
...nfig/test_views/views.view.test_views_move_to_handler.yml
+0
-0
core/modules/views/tests/views_test_config/test_views/views.view.test_views_move_to_table.yml
...config/test_views/views.view.test_views_move_to_table.yml
+0
-0
No files found.
core/modules/views/lib/Drupal/views/Tests/BasicTest.php
View file @
41ae1ead
...
...
@@ -12,6 +12,13 @@
*/
class
BasicTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
,
'test_simple_argument'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Basic query tests'
,
...
...
@@ -101,56 +108,8 @@ public function testSimpleFiltering() {
* Tests simple argument.
*/
public
function
testSimpleArgument
()
{
$view
=
views_get_view
(
'test_view'
);
$view
->
setDisplay
();
// Add a argument.
$view
->
displayHandlers
[
'default'
]
->
overrideOption
(
'arguments'
,
array
(
'age'
=>
array
(
'default_action'
=>
'ignore'
,
'style_plugin'
=>
'default_summary'
,
'style_options'
=>
array
(),
'wildcard'
=>
'all'
,
'wildcard_substitution'
=>
'All'
,
'title'
=>
''
,
'breadcrumb'
=>
''
,
'default_argument_type'
=>
'fixed'
,
'default_argument'
=>
''
,
'validate'
=>
array
(
'type'
=>
'none'
,
'fail'
=>
'not found'
,
),
'break_phrase'
=>
0
,
'not'
=>
0
,
'id'
=>
'age'
,
'table'
=>
'views_test_data'
,
'field'
=>
'age'
,
'validate_user_argument_type'
=>
'uid'
,
'validate_user_roles'
=>
array
(
'2'
=>
0
,
),
'relationship'
=>
'none'
,
'default_options_div_prefix'
=>
''
,
'default_argument_user'
=>
0
,
'default_argument_fixed'
=>
''
,
'default_argument_php'
=>
''
,
'validate_argument_node_type'
=>
array
(
'page'
=>
0
,
'story'
=>
0
,
),
'validate_argument_node_access'
=>
0
,
'validate_argument_nid_type'
=>
'nid'
,
'validate_argument_vocabulary'
=>
array
(),
'validate_argument_type'
=>
'tid'
,
'validate_argument_transform'
=>
0
,
'validate_user_restrict_roles'
=>
0
,
'validate_argument_php'
=>
''
,
)
));
$saved_view
=
clone
$view
;
// Execute with a view
$view
=
views_get_view
(
'test_simple_argument'
);
$view
->
setArguments
(
array
(
27
));
$this
->
executeView
(
$view
);
...
...
@@ -171,7 +130,7 @@ public function testSimpleArgument() {
));
// Test "show all" if no argument is present.
$view
=
$saved_view
->
cloneView
(
);
$view
=
views_get_view
(
'test_simple_argument'
);
$this
->
executeView
(
$view
);
// Build the expected result.
...
...
core/modules/views/lib/Drupal/views/Tests/Comment/ArgumentUserUIDTest.php
View file @
41ae1ead
...
...
@@ -12,6 +12,13 @@
*/
class
ArgumentUserUIDTest
extends
CommentTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_comment_user_uid'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Comment: User UID Argument'
,
...
...
@@ -21,7 +28,8 @@ public static function getInfo() {
}
function
testCommentUserUIDTest
()
{
$this
->
executeView
(
$this
->
view
,
array
(
$this
->
account
->
uid
));
$view
=
views_get_view
(
'test_comment_user_uid'
);
$this
->
executeView
(
$view
,
array
(
$this
->
account
->
uid
));
$result_set
=
array
(
array
(
'nid'
=>
$this
->
node_user_posted
->
nid
,
...
...
@@ -30,8 +38,8 @@ function testCommentUserUIDTest() {
'nid'
=>
$this
->
node_user_commented
->
nid
,
),
);
$
this
->
column_map
=
array
(
'nid'
=>
'nid'
);
$this
->
assertIdenticalResultset
(
$
this
->
view
,
$result_set
,
$this
->
column_map
);
$column_map
=
array
(
'nid'
=>
'nid'
);
$this
->
assertIdenticalResultset
(
$
view
,
$result_set
,
$
column_map
);
}
}
core/modules/views/lib/Drupal/views/Tests/Comment/CommentTestBase.php
View file @
41ae1ead
...
...
@@ -42,11 +42,4 @@ function setUp() {
entity_create
(
'comment'
,
$comment
)
->
save
();
}
/**
* Overrides Drupal\views\Tests\ViewTestBase::getBasicView().
*/
protected
function
getBasicView
()
{
return
$this
->
createViewFromConfig
(
'test_comment_user_uid'
);
}
}
core/modules/views/lib/Drupal/views/Tests/Comment/FilterUserUIDTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FilterUserUIDTest
extends
CommentTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_comment_user_uid'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Comment: User UID Filter'
,
...
...
@@ -23,7 +30,9 @@ public static function getInfo() {
}
function
testCommentUserUIDTest
()
{
$this
->
view
->
setItem
(
'default'
,
'argument'
,
'uid_touch'
,
NULL
);
$view
=
views_get_view
(
'test_comment_user_uid'
);
$view
->
setDisplay
();
$view
->
setItem
(
'default'
,
'argument'
,
'uid_touch'
,
NULL
);
$options
=
array
(
'id'
=>
'uid_touch'
,
...
...
@@ -31,8 +40,8 @@ function testCommentUserUIDTest() {
'field'
=>
'uid_touch'
,
'value'
=>
array
(
$this
->
loggedInUser
->
uid
),
);
$
this
->
view
->
addItem
(
'default'
,
'filter'
,
'node'
,
'uid_touch'
,
$options
);
$this
->
executeView
(
$
this
->
view
,
array
(
$this
->
account
->
uid
));
$view
->
addItem
(
'default'
,
'filter'
,
'node'
,
'uid_touch'
,
$options
);
$this
->
executeView
(
$view
,
array
(
$this
->
account
->
uid
));
$result_set
=
array
(
array
(
'nid'
=>
$this
->
node_user_posted
->
nid
,
...
...
@@ -42,7 +51,7 @@ function testCommentUserUIDTest() {
),
);
$this
->
column_map
=
array
(
'nid'
=>
'nid'
);
$this
->
assertIdenticalResultset
(
$
this
->
view
,
$result_set
,
$this
->
column_map
);
$this
->
assertIdenticalResultset
(
$view
,
$result_set
,
$this
->
column_map
);
}
}
core/modules/views/lib/Drupal/views/Tests/Entity/FieldEntityTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,12 @@
*/
class
FieldEntityTest
extends
ViewTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_field_get_entity'
);
/**
* Modules to enable.
...
...
core/modules/views/lib/Drupal/views/Tests/Field/HandlerFieldFieldTest.php
View file @
41ae1ead
...
...
@@ -7,6 +7,8 @@
namespace
Drupal\views\Tests\Field
;
use
Drupal\views\ViewExecutable
;
/**
* Tests the field_field handler.
* @TODO
...
...
@@ -17,6 +19,13 @@
*/
class
HandlerFieldFieldTest
extends
FieldTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view_fieldapi'
);
public
$nodes
;
public
static
function
getInfo
()
{
...
...
@@ -27,6 +36,9 @@ public static function getInfo() {
);
}
/**
* @todo.
*/
protected
function
setUp
()
{
parent
::
setUp
();
...
...
@@ -59,19 +71,21 @@ protected function setUp() {
$this
->
nodes
[
$i
]
=
$this
->
drupalCreateNode
(
$edit
);
}
foreach
(
$this
->
fields
as
$key
=>
$field
)
{
$this
->
view
->
display_handler
->
display
[
'display_options'
][
'fields'
][
$field
[
'field_name'
]][
'id'
]
=
$field
[
'field_name'
];
$this
->
view
->
display_handler
->
display
[
'display_options'
][
'fields'
][
$field
[
'field_name'
]][
'table'
]
=
'field_data_'
.
$field
[
'field_name'
];
$this
->
view
->
display_handler
->
display
[
'display_options'
][
'fields'
][
$field
[
'field_name'
]][
'field'
]
=
$field
[
'field_name'
];
}
}
/**
* Overrides Drupal\views\Tests\ViewTestBase::getBasicView().
* Sets up the testing view with random field data.
*
* @param \Drupal\views\ViewExecutable $view
* The view to add field data to.
*/
protected
function
getBasicView
()
{
return
$this
->
createViewFromConfig
(
'test_view_fieldapi'
);
protected
function
prepareView
(
ViewExecutable
$view
)
{
$view
->
initDisplay
();
foreach
(
$this
->
fields
as
$key
=>
$field
)
{
$view
->
display_handler
->
options
[
'fields'
][
$field
[
'field_name'
]][
'id'
]
=
$field
[
'field_name'
];
$view
->
display_handler
->
options
[
'fields'
][
$field
[
'field_name'
]][
'table'
]
=
'field_data_'
.
$field
[
'field_name'
];
$view
->
display_handler
->
options
[
'fields'
][
$field
[
'field_name'
]][
'field'
]
=
$field
[
'field_name'
];
}
}
public
function
testFieldRender
()
{
...
...
@@ -81,7 +95,8 @@ public function testFieldRender() {
}
public
function
_testSimpleFieldRender
()
{
$view
=
$this
->
getView
();
$view
=
views_get_view
(
'test_view_fieldapi'
);
$this
->
prepareView
(
$view
);
$this
->
executeView
(
$view
);
// Tests that the rendered fields match the actual value of the fields.
...
...
@@ -99,7 +114,8 @@ public function _testSimpleFieldRender() {
* Tests that fields with formatters runs as expected.
*/
public
function
_testFormatterSimpleFieldRender
()
{
$view
=
$this
->
getView
();
$view
=
views_get_view
(
'test_view_fieldapi'
);
$this
->
prepareView
(
$view
);
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$this
->
fields
[
0
][
'field_name'
]][
'type'
]
=
'text_trimmed'
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$this
->
fields
[
0
][
'field_name'
]][
'settings'
]
=
array
(
'trim_length'
=>
3
,
...
...
@@ -115,11 +131,11 @@ public function _testFormatterSimpleFieldRender() {
}
public
function
_testMultipleFieldRender
()
{
$view
=
$this
->
getView
(
);
$view
=
views_get_view
(
'test_view_fieldapi'
);
$field_name
=
$this
->
fields
[
3
][
'field_name'
];
// Test delta limit.
$
view
->
initDisplay
(
);
$
this
->
prepareView
(
$view
);
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'group_rows'
]
=
TRUE
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_limit'
]
=
3
;
$this
->
executeView
(
$view
);
...
...
@@ -141,7 +157,7 @@ public function _testMultipleFieldRender() {
$view
->
destroy
();
// Test delta limit + offset
$
view
->
initDisplay
(
);
$
this
->
prepareView
(
$view
);
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'group_rows'
]
=
TRUE
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_limit'
]
=
3
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_offset'
]
=
1
;
...
...
@@ -160,7 +176,7 @@ public function _testMultipleFieldRender() {
$view
->
destroy
();
// Test delta limit + reverse.
$
view
->
initDisplay
(
);
$
this
->
prepareView
(
$view
);
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_offset'
]
=
0
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'group_rows'
]
=
TRUE
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_limit'
]
=
3
;
...
...
@@ -181,7 +197,7 @@ public function _testMultipleFieldRender() {
$view
->
destroy
();
// Test delta first last.
$
view
->
initDisplay
(
);
$
this
->
prepareView
(
$view
);
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'group_rows'
]
=
TRUE
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_limit'
]
=
0
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_first_last'
]
=
TRUE
;
...
...
@@ -199,7 +215,7 @@ public function _testMultipleFieldRender() {
$view
->
destroy
();
// Test delta limit + custom seperator.
$
view
->
initDisplay
(
);
$
this
->
prepareView
(
$view
);
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_first_last'
]
=
FALSE
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'delta_limit'
]
=
3
;
$view
->
displayHandlers
[
'default'
]
->
options
[
'fields'
][
$field_name
][
'group_rows'
]
=
TRUE
;
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/AreaTest.php
View file @
41ae1ead
...
...
@@ -15,6 +15,13 @@
*/
class
AreaTest
extends
HandlerTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_example_area'
);
/**
* Modules to enable.
*
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php
View file @
41ae1ead
...
...
@@ -16,6 +16,13 @@
*/
class
AreaTextTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Area: Text'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentNullTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
ArgumentNullTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Argument: Null'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/ArgumentStringTest.php
View file @
41ae1ead
...
...
@@ -12,6 +12,13 @@
*/
class
ArgumentStringTest
extends
HandlerTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_glossary'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Argument: String'
,
...
...
@@ -35,7 +42,7 @@ function testGlossary() {
}
}
$view
=
$this
->
createViewFromConfig
(
'test_glossary'
);
$view
=
views_get_view
(
'test_glossary'
);
$this
->
executeView
(
$view
);
$count_field
=
'nid'
;
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldBooleanTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FieldBooleanTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Field: Boolean'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldCounterTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FieldCounterTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Field: Counter'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldCustomTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FieldCustomTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Field: Custom'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldDateTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FieldDateTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Field: Date'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldFileSizeTest.php
View file @
41ae1ead
...
...
@@ -16,6 +16,13 @@
*/
class
FieldFileSizeTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Field: File size'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldUnitTest.php
View file @
41ae1ead
...
...
@@ -16,6 +16,13 @@
*/
class
FieldUnitTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
,
'test_field_tokens'
,
'test_field_output'
);
protected
$column_map
=
array
(
'views_test_data_name'
=>
'name'
,
);
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldUrlTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FieldUrlTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Field: URL'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FieldWebTest
extends
HandlerTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
,
'test_field_classes'
,
'test_field_output'
,
'test_click_sort'
);
protected
$column_map
=
array
(
'views_test_data_name'
=>
'name'
,
);
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FieldXssTest.php
View file @
41ae1ead
...
...
@@ -16,6 +16,13 @@
*/
class
FieldXssTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public
static
$testViews
=
array
(
'test_view'
);
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Field: XSS'
,
...
...
core/modules/views/lib/Drupal/views/Tests/Handler/FilterCombineTest.php
View file @
41ae1ead
...
...
@@ -14,6 +14,13 @@
*/
class
FilterCombineTest
extends
ViewUnitTestBase
{
/**
* Views used by this test.
*
* @var array
*/
public