From 92447b833433bc9e088d856722828fa07fb88914 Mon Sep 17 00:00:00 2001 From: pl2 <pl2@123766.no-reply.drupal.org> Date: Sat, 16 Jun 2012 12:02:31 +0200 Subject: [PATCH] Issue #1639250 by Pedro Lozano: Convert exposd form tests to PSR-0. --- .../Drupal/views/Tests/AnalyzeTest.php | 8 ++++++-- .../Drupal/views/Tests/ExposedFormTest.php | 8 ++++++-- .../Drupal/views/Tests/GlossaryTest.php | 8 ++++++-- views.info | 3 --- 4 files changed, 18 insertions(+), 9 deletions(-) rename tests/views_analyze.test => lib/Drupal/views/Tests/AnalyzeTest.php (89%) rename tests/views_exposed_form.test => lib/Drupal/views/Tests/ExposedFormTest.php (96%) rename tests/views_glossary.test => lib/Drupal/views/Tests/GlossaryTest.php (90%) diff --git a/tests/views_analyze.test b/lib/Drupal/views/Tests/AnalyzeTest.php similarity index 89% rename from tests/views_analyze.test rename to lib/Drupal/views/Tests/AnalyzeTest.php index e9311e57f381..64e450ed5736 100644 --- a/tests/views_analyze.test +++ b/lib/Drupal/views/Tests/AnalyzeTest.php @@ -2,13 +2,17 @@ /** * @file - * Definition of ViewsAnalyzeTest. + * Definition of Drupal\views\Tests\AnalyzeTest. */ +namespace Drupal\views\Tests; + +use ViewsSqlTest; + /** * Tests the views analyze system. */ -class ViewsAnalyzeTest extends ViewsSqlTest { +class AnalyzeTest extends ViewsSqlTest { public static function getInfo() { return array( 'name' => 'Views Analyze', diff --git a/tests/views_exposed_form.test b/lib/Drupal/views/Tests/ExposedFormTest.php similarity index 96% rename from tests/views_exposed_form.test rename to lib/Drupal/views/Tests/ExposedFormTest.php index 3b2933baad8e..d6c8cd0b054b 100644 --- a/tests/views_exposed_form.test +++ b/lib/Drupal/views/Tests/ExposedFormTest.php @@ -2,13 +2,17 @@ /** * @file - * Definition of ViewsExposedFormTest. + * Definition of Drupal\views\Tests\ExposedFormTest. */ +namespace Drupal\views\Tests; + +use ViewsSqlTest; + /** * Tests exposed forms. */ -class ViewsExposedFormTest extends ViewsSqlTest { +class ExposedFormTest extends ViewsSqlTest { public static function getInfo() { return array( 'name' => 'Exposed forms', diff --git a/tests/views_glossary.test b/lib/Drupal/views/Tests/GlossaryTest.php similarity index 90% rename from tests/views_glossary.test rename to lib/Drupal/views/Tests/GlossaryTest.php index 0fe0fbae6f50..3745fc7e5de6 100644 --- a/tests/views_glossary.test +++ b/lib/Drupal/views/Tests/GlossaryTest.php @@ -2,13 +2,17 @@ /** * @file - * Definition of ViewsGlossaryTestCase. + * Definition of Drupal\views\Tests\GlossaryTest. */ +namespace Drupal\views\Tests; + +use ViewsSqlTest; + /** * Tests glossary view ( summary of arguments ). */ -class ViewsGlossaryTestCase extends ViewsSqlTest { +class GlossaryTest extends ViewsSqlTest { public static function getInfo() { return array( 'name' => 'Glossary Test', diff --git a/views.info b/views.info index 55acf8a8c651..e3d0642229dd 100644 --- a/views.info +++ b/views.info @@ -248,11 +248,8 @@ files[] = tests/test_plugins/views_test_plugin_access_test_dynamic.inc files[] = tests/test_plugins/views_test_plugin_access_test_static.inc files[] = tests/plugins/views_plugin_display.test files[] = tests/views_access.test -files[] = tests/views_analyze.test files[] = tests/views_argument_default.test -files[] = tests/views_exposed_form.test files[] = tests/field/views_fieldapi.test -files[] = tests/views_glossary.test files[] = tests/views_groupby.test files[] = tests/views_handlers.test files[] = tests/views_module.test -- GitLab