Commit 98f0fddf authored by Pedro Lozano's avatar Pedro Lozano Committed by tim.plunkett

Issue #1641688 by Pedro Lozano: Convert upgrade tests to PSR-0.

parent 6536ad21
......@@ -2,18 +2,21 @@
/**
* @file
* Definition of ViewsArgumentDefaultTest.
* Definition of Drupal\views\Tests\ArgumentDefaultTest.
*/
namespace Drupal\views\Tests;
use ViewsSqlTest;
use Drupal\views\View;
/**
* Basic test for pluggable argument default.
*/
class ViewsArgumentDefaultTest extends ViewsSqlTest {
class ArgumentDefaultTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Argument_default',
'name' => 'Argument default',
'description' => 'Tests pluggable argument_default for views.',
'group' => 'Views Plugins'
);
......
......@@ -2,9 +2,12 @@
/**
* @file
* Definition of ViewsCacheTest.
* Definition of Drupal\views\Tests\CacheTest.
*/
namespace Drupal\views\Tests;
use ViewsSqlTest;
use Drupal\views\View;
/**
......@@ -12,7 +15,7 @@
*
* @see views_plugin_cache
*/
class ViewsCacheTest extends ViewsSqlTest {
class CacheTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Cache',
......
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of ViewsHandlersTest.
* Definition of Drupal\views\Tests\HandlersTest.
*/
namespace Drupal\views\Tests;
use ViewsSqlTest;
/**
* Tests abstract handlers of views.
*/
class ViewsHandlersTest extends ViewsSqlTest {
class HandlersTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Handlers test',
......@@ -43,7 +47,7 @@ function testFilterInOperatorUi() {
* Tests views_break_phrase_string function.
*/
function test_views_break_phrase_string() {
$empty_stdclass = new stdClass();
$empty_stdclass = new \StdClass();
$empty_stdclass->operator = 'or';
$empty_stdclass->value = array();
......@@ -79,7 +83,7 @@ function test_views_break_phrase_string() {
* Tests views_break_phrase function.
*/
function test_views_break_phrase() {
$empty_stdclass = new stdClass();
$empty_stdclass = new \StdClass();
$empty_stdclass->operator = 'or';
$empty_stdclass->value = array();
......
......@@ -2,15 +2,18 @@
/**
* @file
* Definition of ViewsPagerTest.
* Definition of Drupal\views\Tests\PagerTest.
*/
namespace Drupal\views\Tests;
use ViewsSqlTest;
use Drupal\views\View;
/**
* Tests the pluggable pager system.
*/
class ViewsPagerTest extends ViewsSqlTest {
class PagerTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Pager',
......
......@@ -2,15 +2,18 @@
/**
* @file
* Definition of ViewsTranslatableTest.
* Definition of Drupal\views\Tests\TranslatableTest.
*/
namespace Drupal\views\Tests;
use ViewsSqlTest;
use Drupal\views\View;
/**
* Tests Views pluggable translations.
*/
class ViewsTranslatableTest extends ViewsSqlTest {
class TranslatableTest extends ViewsSqlTest {
var $strings;
public static function getInfo() {
......
......@@ -2,9 +2,12 @@
/**
* @file
* Definition of ViewsUpgradeTestCase.
* Definition of Drupal\views\Tests\UpgradeTestCase.
*/
namespace Drupal\views\Tests;
use ViewsSqlTest;
use Drupal\views\View;
/**
......@@ -12,7 +15,7 @@
*
* You can find all conversions by searching for "moved to".
*/
class ViewsUpgradeTestCase extends ViewsSqlTest {
class UpgradeTestCase extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Views Upgrade test',
......
......@@ -2,15 +2,18 @@
/**
* @file
* Definition of ViewsViewTest.
* Definition of Drupal\views\Tests\ViewTest.
*/
namespace Drupal\views\Tests;
use ViewsSqlTest;
use Drupal\views\View;
/**
* Views class tests.
*/
class ViewsViewTest extends ViewsSqlTest {
class ViewTest extends ViewsSqlTest {
public static function getInfo() {
return array(
'name' => 'Test the view class',
......
......@@ -247,16 +247,11 @@ 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_argument_default.test
files[] = tests/field/views_fieldapi.test
files[] = tests/views_groupby.test
files[] = tests/views_handlers.test
files[] = tests/views_module.test
files[] = tests/views_pager.test
files[] = tests/views_plugin_localization_test.inc
files[] = tests/views_translatable.test
files[] = tests/views_query.test
files[] = tests/views_upgrade.test
files[] = tests/views_test.views_default.inc
files[] = tests/comment/views_handler_argument_comment_user_uid.test
files[] = tests/comment/views_handler_filter_comment_user_uid.test
......@@ -264,6 +259,4 @@ files[] = tests/user/views_handler_field_user_name.test
files[] = tests/user/views_user_argument_default.test
files[] = tests/user/views_user_argument_validate.test
files[] = tests/user/views_user.test
files[] = tests/views_cache.test
files[] = tests/views_view.test
files[] = tests/views_ui.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