fixing lots of handler tests
parent
2ee1981045
commit
4cf246232b
|
@ -10,20 +10,20 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class ArgumentNullTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Argument: Null',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['id']['argument']['handler'] = 'views_handler_argument_null';
|
$data['views_test']['id']['argument']['id'] = 'null';
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,13 +11,13 @@ use Drupal\views\Tests\ViewsSqlTest;
|
||||||
use Drupal\views\View;
|
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 {
|
class ArgumentStringTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Argument: String',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,13 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FieldBooleanTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: Boolean',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ class FieldBooleanTest extends ViewsSqlTest {
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['age']['field']['handler'] = 'views_handler_field_boolean';
|
$data['views_test']['age']['field']['id'] = 'boolean';
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,13 +10,13 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FieldCounterTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: Counter',
|
'name' => 'Field: Counter',
|
||||||
'description' => 'Tests the views_handler_field_counter handler.',
|
'description' => 'Tests the Drupal\views\Plugin\views\field\Counter handler.',
|
||||||
'group' => 'Views Handlers',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,20 +10,20 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FieldCustomTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: Custom',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['name']['field']['handler'] = 'views_handler_field_custom';
|
$data['views_test']['name']['field']['id'] = 'custom';
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,20 +10,20 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FieldDateTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: Date',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['created']['field']['handler'] = 'views_handler_field_date';
|
$data['views_test']['created']['field']['id'] = 'date';
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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
|
* @see CommonXssUnitTest
|
||||||
*/
|
*/
|
||||||
|
@ -18,7 +18,7 @@ class FieldFileSizeTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: file_size',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ class FieldFileSizeTest extends ViewsSqlTest {
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::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;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,13 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FieldMathTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: Math',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,20 +9,20 @@ namespace Drupal\views\Tests\Handler;
|
||||||
|
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FieldUrlTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: Url',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['name']['field']['handler'] = 'views_handler_field_url';
|
$data['views_test']['name']['field']['id'] = 'url';
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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
|
* @see CommonXssUnitTest
|
||||||
*/
|
*/
|
||||||
|
@ -18,7 +18,7 @@ class FieldXssTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Field: Xss',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ class FieldXssTest extends ViewsSqlTest {
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['name']['field']['handler'] = 'views_handler_field_xss';
|
$data['views_test']['name']['field']['id'] = 'xss';
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,13 +11,13 @@ use Drupal\views\Tests\ViewsSqlTest;
|
||||||
use Drupal\views\View;
|
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 {
|
class FilterDateTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Filter: Date',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class FilterDateTest extends ViewsSqlTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
/* Test the general offset functionality.
|
* Test the general offset functionality.
|
||||||
*/
|
*/
|
||||||
function testOffset() {
|
function testOffset() {
|
||||||
$view = $this->views_test_offset();
|
$view = $this->views_test_offset();
|
||||||
|
|
|
@ -10,13 +10,13 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FilterEqualityTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Filter: Equality',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ class FilterEqualityTest extends ViewsSqlTest {
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['name']['filter']['handler'] = 'views_handler_filter_equality';
|
$data['views_test']['name']['filter']['id'] = 'equality';
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,20 +10,20 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FilterInOperatorTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Filter: in_operator',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewsData() {
|
function viewsData() {
|
||||||
$data = parent::viewsData();
|
$data = parent::viewsData();
|
||||||
$data['views_test']['age']['filter']['handler'] = 'in_operator';
|
$data['views_test']['age']['filter']['id'] = 'in_operator';
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class FilterStringTest extends ViewsSqlTest {
|
||||||
var $column_map = array();
|
var $column_map = array();
|
||||||
|
@ -18,7 +18,7 @@ class FilterStringTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Filter: String',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,13 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class SortDateTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Sort: date',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,13 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class SortRandomTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Sort: random',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,13 @@ namespace Drupal\views\Tests\Handler;
|
||||||
use Drupal\views\Tests\ViewsSqlTest;
|
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 {
|
class SortTest extends ViewsSqlTest {
|
||||||
public static function getInfo() {
|
public static function getInfo() {
|
||||||
return array(
|
return array(
|
||||||
'name' => 'Sort: generic',
|
'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',
|
'group' => 'Views Handlers',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue