Commit 42bd7877 authored by RobLoach's avatar RobLoach Committed by tim.plunkett

Issue #1637412 by Manuel Garcia, Rob Loach: [8.x] Convert Handler tests to PSR-0.

parent 60ec9f45
......@@ -2,15 +2,19 @@
/**
* @file
* Definition of ViewsHandlerAreaTextTest.
* Definition of Drupal\views\Tests\Handler\AreaTextTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the text area handler.
*
* @see views_handler_area_text
*/
class ViewsHandlerAreaTextTest extends ViewsSqlTest {
class AreaTextTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Area: Text',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerArgumentNullTest.
* Definition of Drupal\views\Tests\Handler\ArgumentNullTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_argument_null handler.
*/
class ViewsHandlerArgumentNullTest extends ViewsSqlTest {
class ArgumentNullTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Argument: Null',
......
<?php
/**
* @file
* Definition of ViewsHandlerArgumentNullTest.
* Definition of Drupal\views\Tests\Handler\ArgumentStringTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
use view;
/**
* Tests the core views_handler_argument_string handler.
*/
class ViewsHandlerArgumentStringTest extends ViewsSqlTest {
class ArgumentStringTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Argument: String',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFieldBooleanTest.
* Definition of Drupal\views\Tests\Handler\FieldBooleanTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_field_boolean handler.
*/
class ViewsHandlerFieldBooleanTest extends ViewsSqlTest {
class FieldBooleanTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Boolean',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFilterCounterTest.
* Definition of Drupal\views\Tests\Handler\FilterCounterTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the views_handler_field_counter handler.
*/
class ViewsHandlerFilterCounterTest extends ViewsSqlTest {
class FilterCounterTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Counter',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFieldCustomTest.
* Definition of Drupal\views\Tests\Handler\FieldCustomTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_field_custom handler.
*/
class ViewsHandlerFieldCustomTest extends ViewsSqlTest {
class FieldCustomTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Custom',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFieldDateTest.
* Definition of Drupal\views\Tests\Handler\FieldDateTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_field_date handler.
*/
class ViewsHandlerFieldDateTest extends ViewsSqlTest {
class FieldDateTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Date',
......
......@@ -2,15 +2,19 @@
/**
* @file
* Definition of ViewsHandlerTestFileSize.
* Definition of Drupal\views\Tests\Handler\FieldFileSizeTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_field_file_size handler.
*
* @see CommonXssUnitTest
*/
class ViewsHandlerTestFileSize extends ViewsSqlTest {
class FieldFileSizeTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: file_size',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFieldMath.
* Definition of Drupal\views\Tests\Handler\FieldMathTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_field_math handler.
*/
class ViewsHandlerFieldMath extends ViewsSqlTest {
class FieldMathTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Math',
......
......@@ -2,15 +2,19 @@
/**
* @file
* Definition of ViewsHandlerFieldTest.
* Definition of Drupal\views\Tests\Handler\FieldTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the generic field handler
*
* @see views_handler_field
*/
class ViewsHandlerFieldTest extends ViewsSqlTest {
class FieldTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field',
......
......@@ -2,13 +2,16 @@
/**
* @file
* Definition of ViewsHandlerFieldUrlTest.
* Definition of Drupal\views\Tests\Handler\FieldUrlTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_field_url handler.
*/
class ViewsHandlerFieldUrlTest extends ViewsSqlTest {
class FieldUrlTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Url',
......
......@@ -2,15 +2,19 @@
/**
* @file
* Definition of ViewsHandlerTestXss.
* Definition of Drupal\views\Tests\Handler\FieldXssTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_field_css handler.
*
* @see CommonXssUnitTest
*/
class ViewsHandlerTestXss extends ViewsSqlTest {
class FieldXssTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Xss',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFilterCombineTest.
* Definition of Drupal\views\Tests\Handler\FilterCombineTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the combine filter handler.
*/
class ViewsHandlerFilterCombineTest extends ViewsSqlTest {
class FilterCombineTest extends ViewsSqlTest {
var $column_map = array();
public static function getInfo() {
......
......@@ -2,13 +2,19 @@
/**
* @file
* Definition of ViewsHandlerFilterDateTest.
* Definition of Drupal\views\Tests\Handler\FilterDateTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
use view;
/**
* Tests the core views_handler_filter_date handler.
*/
class ViewsHandlerFilterDateTest extends ViewsSqlTest {
class FilterDateTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Filter: Date',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFilterEqualityTest.
* Definition of Drupal\views\Tests\Handler\FilterEqualityTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_filter_equality handler.
*/
class ViewsHandlerFilterEqualityTest extends ViewsSqlTest {
class FilterEqualityTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Filter: Equality',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFilterInOperator.
* Definition of Drupal\views\Tests\Handler\FilterInOperatorTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_filter_in_operator handler.
*/
class ViewsHandlerFilterInOperator extends ViewsSqlTest {
class FilterInOperatorTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Filter: in_operator',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFilterNumericTest.
* Definition of Drupal\views\Tests\Handler\FilterNumericTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the numeric filter handler.
*/
class ViewsHandlerFilterNumericTest extends ViewsSqlTest {
class FilterNumericTest extends ViewsSqlTest {
var $column_map = array();
public static function getInfo() {
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerFilterStringTest.
* Definition of Drupal\views\Tests\Handler\FilterStringTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests the core views_handler_filter_string handler.
*/
class ViewsHandlerFilterStringTest extends ViewsSqlTest {
class FilterStringTest extends ViewsSqlTest {
var $column_map = array();
public static function getInfo() {
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerSortDateTest.
* Definition of Drupal\views\Tests\Handler\SortDateTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests for core views_handler_sort_date handler.
*/
class ViewsHandlerSortDateTest extends ViewsSqlTest {
class SortDateTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Sort: date',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerSortRandomTest.
* Definition of Drupal\views\Tests\Handler\SortRandomTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests for core views_handler_sort_random handler.
*/
class ViewsHandlerSortRandomTest extends ViewsSqlTest {
class SortRandomTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Sort: random',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlerSortTest.
* Definition of Drupal\views\Tests\Handler\SortTest.
*/
namespace Drupal\views\Tests\Handler;
use ViewsSqlTest;
/**
* Tests for core views_handler_sort handler.
*/
class ViewsHandlerSortTest extends ViewsSqlTest {
class SortTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Sort: generic',
......
......@@ -244,27 +244,6 @@ files[] = plugins/views_plugin_style_summary_unformatted.inc
files[] = plugins/views_plugin_style_table.inc
; Tests
files[] = tests/handlers/views_handler_area_text.test
files[] = tests/handlers/views_handler_argument_null.test
files[] = tests/handlers/views_handler_argument_string.test
files[] = tests/handlers/views_handler_field.test
files[] = tests/handlers/views_handler_field_boolean.test
files[] = tests/handlers/views_handler_field_custom.test
files[] = tests/handlers/views_handler_field_counter.test
files[] = tests/handlers/views_handler_field_date.test
files[] = tests/handlers/views_handler_field_file_size.test
files[] = tests/handlers/views_handler_field_math.test
files[] = tests/handlers/views_handler_field_url.test
files[] = tests/handlers/views_handler_field_xss.test
files[] = tests/handlers/views_handler_filter_combine.test
files[] = tests/handlers/views_handler_filter_date.test
files[] = tests/handlers/views_handler_filter_equality.test
files[] = tests/handlers/views_handler_filter_in_operator.test
files[] = tests/handlers/views_handler_filter_numeric.test
files[] = tests/handlers/views_handler_filter_string.test
files[] = tests/handlers/views_handler_sort_random.test
files[] = tests/handlers/views_handler_sort_date.test
files[] = tests/handlers/views_handler_sort.test
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment