Commit 4cf24623 authored by aspilicious's avatar aspilicious Committed by tim.plunkett
Browse files

fixing lots of handler tests

parent 2ee19810
......@@ -10,20 +10,20 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_argument_null handler.
* Tests the core Drupal\views\Plugin\views\argument\Null handler.
*/
class ArgumentNullTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Argument: Null',
'description' => 'Test the core views_handler_argument_null handler.',
'description' => 'Test the core Drupal\views\Plugin\views\argument\Null handler.',
'group' => 'Views Handlers',
);
}
function viewsData() {
$data = parent::viewsData();
$data['views_test']['id']['argument']['handler'] = 'views_handler_argument_null';
$data['views_test']['id']['argument']['id'] = 'null';
return $data;
}
......
......@@ -11,13 +11,13 @@
use Drupal\views\View;
/**
* Tests the core views_handler_argument_string handler.
* Tests the core Drupal\views\Plugin\views\argument\String handler.
*/
class ArgumentStringTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Argument: String',
'description' => 'Test the core views_handler_argument_string handler.',
'description' => 'Test the core Drupal\views\Plugin\views\argument\String handler.',
'group' => 'Views Handlers',
);
}
......
......@@ -10,13 +10,13 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_field_boolean handler.
* Tests the core Drupal\views\Plugin\views\field\Boolean handler.
*/
class FieldBooleanTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Boolean',
'description' => 'Test the core views_handler_field_boolean handler.',
'description' => 'Test the core Drupal\views\Plugin\views\field\Boolean handler.',
'group' => 'Views Handlers',
);
}
......@@ -31,7 +31,7 @@ function dataSet() {
function viewsData() {
$data = parent::viewsData();
$data['views_test']['age']['field']['handler'] = 'views_handler_field_boolean';
$data['views_test']['age']['field']['id'] = 'boolean';
return $data;
}
......
......@@ -10,13 +10,13 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the views_handler_field_counter handler.
* Tests the Drupal\views\Plugin\views\field\Counter handler.
*/
class FieldCounterTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Counter',
'description' => 'Tests the views_handler_field_counter handler.',
'description' => 'Tests the Drupal\views\Plugin\views\field\Counter handler.',
'group' => 'Views Handlers',
);
}
......
......@@ -10,20 +10,20 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_field_custom handler.
* Tests the core Drupal\views\Plugin\views\field\Custom handler.
*/
class FieldCustomTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Custom',
'description' => 'Test the core views_handler_field_custom handler.',
'description' => 'Test the core Drupal\views\Plugin\views\field\Custom handler.',
'group' => 'Views Handlers',
);
}
function viewsData() {
$data = parent::viewsData();
$data['views_test']['name']['field']['handler'] = 'views_handler_field_custom';
$data['views_test']['name']['field']['id'] = 'custom';
return $data;
}
......
......@@ -10,20 +10,20 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_field_date handler.
* Tests the core Drupal\views\Plugin\views\field\Date handler.
*/
class FieldDateTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Date',
'description' => 'Test the core views_handler_field_date handler.',
'description' => 'Test the core Drupal\views\Plugin\views\field\Date handler.',
'group' => 'Views Handlers',
);
}
function viewsData() {
$data = parent::viewsData();
$data['views_test']['created']['field']['handler'] = 'views_handler_field_date';
$data['views_test']['created']['field']['id'] = 'date';
return $data;
}
......
......@@ -10,7 +10,7 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_field_file_size handler.
* Tests the core Drupal\views\Plugin\views\field\FileSize handler.
*
* @see CommonXssUnitTest
*/
......@@ -18,7 +18,7 @@ class FieldFileSizeTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: file_size',
'description' => 'Test the core views_handler_field_file_size handler.',
'description' => 'Test the core Drupal\views\Plugin\views\field\FileSize handler.',
'group' => 'Views Handlers',
);
}
......@@ -35,7 +35,7 @@ function dataSet() {
function viewsData() {
$data = parent::viewsData();
$data['views_test']['age']['field']['handler'] = 'views_handler_field_file_size';
$data['views_test']['age']['field']['id'] = 'file_size';
return $data;
}
......
......@@ -10,13 +10,13 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_field_math handler.
* Tests the core Drupal\views\Plugin\views\field\Math handler.
*/
class FieldMathTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Math',
'description' => 'Test the core views_handler_field_math handler.',
'description' => 'Test the core Drupal\views\Plugin\views\field\Math handler.',
'group' => 'Views Handlers',
);
}
......
......@@ -9,20 +9,20 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_field_url handler.
* Tests the core Drupal\views\Plugin\views\field\Url handler.
*/
class FieldUrlTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Url',
'description' => 'Test the core views_handler_field_url handler.',
'description' => 'Test the core Drupal\views\Plugin\views\field\Url handler.',
'group' => 'Views Handlers',
);
}
function viewsData() {
$data = parent::viewsData();
$data['views_test']['name']['field']['handler'] = 'views_handler_field_url';
$data['views_test']['name']['field']['id'] = 'url';
return $data;
}
......
......@@ -10,7 +10,7 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_field_css handler.
* Tests the core Drupal\views\Plugin\views\field\Xss handler.
*
* @see CommonXssUnitTest
*/
......@@ -18,7 +18,7 @@ class FieldXssTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Field: Xss',
'description' => 'Test the core views_handler_field_css handler.',
'description' => 'Test the core Drupal\views\Plugin\views\field\Xss handler.',
'group' => 'Views Handlers',
);
}
......@@ -36,7 +36,7 @@ function dataHelper() {
function viewsData() {
$data = parent::viewsData();
$data['views_test']['name']['field']['handler'] = 'views_handler_field_xss';
$data['views_test']['name']['field']['id'] = 'xss';
return $data;
}
......
......@@ -11,13 +11,13 @@
use Drupal\views\View;
/**
* Tests the core views_handler_filter_date handler.
* Tests the core Drupal\views\Plugin\views\filter\Date handler.
*/
class FilterDateTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Filter: Date',
'description' => 'Test the core views_handler_filter_date handler.',
'description' => 'Test the core Drupal\views\Plugin\views\filter\Date handler.',
'group' => 'Views Handlers',
);
}
......@@ -38,7 +38,7 @@ function setUp() {
}
/**
/* Test the general offset functionality.
* Test the general offset functionality.
*/
function testOffset() {
$view = $this->views_test_offset();
......
......@@ -10,13 +10,13 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_filter_equality handler.
* Tests the core Drupal\views\Plugin\views\filter\Equality handler.
*/
class FilterEqualityTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Filter: Equality',
'description' => 'Test the core views_handler_filter_equality handler.',
'description' => 'Test the core Drupal\views\Plugin\views\filter\Equality handler.',
'group' => 'Views Handlers',
);
}
......@@ -30,7 +30,7 @@ function setUp() {
function viewsData() {
$data = parent::viewsData();
$data['views_test']['name']['filter']['handler'] = 'views_handler_filter_equality';
$data['views_test']['name']['filter']['id'] = 'equality';
return $data;
}
......
......@@ -10,20 +10,20 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core in_operator handler.
* Tests the core Drupal\views\Plugin\views\filter\InOperator handler.
*/
class FilterInOperatorTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Filter: in_operator',
'description' => 'Test the core in_operator handler.',
'description' => 'Test the core Drupal\views\Plugin\views\filter\InOperator handler.',
'group' => 'Views Handlers',
);
}
function viewsData() {
$data = parent::viewsData();
$data['views_test']['age']['filter']['handler'] = 'in_operator';
$data['views_test']['age']['filter']['id'] = 'in_operator';
return $data;
}
......
......@@ -10,7 +10,7 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests the core views_handler_filter_string handler.
* Tests the core Drupal\views\Plugin\views\filter\String handler.
*/
class FilterStringTest extends ViewsSqlTest {
var $column_map = array();
......@@ -18,7 +18,7 @@ class FilterStringTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Filter: String',
'description' => 'Tests the core views_handler_filter_string handler.',
'description' => 'Tests the core Drupal\views\Plugin\views\filter\String handler.',
'group' => 'Views Handlers',
);
}
......
......@@ -10,13 +10,13 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests for core views_handler_sort_date handler.
* Tests for core Drupal\views\Plugin\views\sort\Date handler.
*/
class SortDateTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Sort: date',
'description' => 'Test the core views_handler_sort_date handler.',
'description' => 'Test the core Drupal\views\Plugin\views\sort\Date handler.',
'group' => 'Views Handlers',
);
}
......
......@@ -10,13 +10,13 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests for core views_handler_sort_random handler.
* Tests for core Drupal\views\Plugin\views\sort\Random handler.
*/
class SortRandomTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Sort: random',
'description' => 'Test the core views_handler_sort_random handler.',
'description' => 'Test the core Drupal\views\Plugin\views\sort\Random handler.',
'group' => 'Views Handlers',
);
}
......
......@@ -10,13 +10,13 @@
use Drupal\views\Tests\ViewsSqlTest;
/**
* Tests for core views_handler_sort handler.
* Tests for core Drupal\views\Plugin\views\sort\SortPluginBase handler.
*/
class SortTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Sort: generic',
'description' => 'Test the core views_handler_sort handler.',
'description' => 'Test the core Drupal\views\Plugin\views\sort\SortPluginBase handler.',
'group' => 'Views Handlers',
);
}
......
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