Renamed tests to have simpler cleaner names

This commit is contained in:
UndefinedOffset 2022-02-16 16:23:08 -04:00
parent 8ed1621f8b
commit 6f44c555cd
No known key found for this signature in database
GPG Key ID: 59C4EE2B6468B796
10 changed files with 23 additions and 26 deletions

View File

@ -19,13 +19,10 @@ use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\Player;
use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\TestParent; use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\TestParent;
use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\VPlayer; use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\VPlayer;
/** class AutoSortTest extends SapphireTest
* Class \UndefinedOffset\SortableGridField\Tests\GridFieldSortableRowsAutoSortTest
*/
class GridFieldSortableRowsAutoSortTest extends SapphireTest
{ {
/** @var string */ /** @var string */
public static $fixture_file = 'GridFieldSortableRowsAutoSortTest.yml'; public static $fixture_file = 'AutoSortTest.yml';
/** @var array */ /** @var array */
protected static $extra_dataobjects = [ protected static $extra_dataobjects = [

View File

@ -13,10 +13,10 @@ use SilverStripe\Security\Member;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows; use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\DummyController; use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\DummyController;
use UndefinedOffset\SortableGridField\Tests\Forms\RowsTest\Team; use UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest\Team;
use UndefinedOffset\SortableGridField\Tests\Forms\RowsTest\VTeam; use UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest\VTeam;
class GridFieldSortableRowsTest extends SapphireTest class OrderingTest extends SapphireTest
{ {
/** @var ArrayList */ /** @var ArrayList */
protected $list; protected $list;
@ -28,7 +28,7 @@ class GridFieldSortableRowsTest extends SapphireTest
protected $form; protected $form;
/** @var string */ /** @var string */
public static $fixture_file = 'GridFieldSortableRowsTest.yml'; public static $fixture_file = 'OrderingTest.yml';
/** @var array */ /** @var array */
protected static $extra_dataobjects = [ protected static $extra_dataobjects = [

View File

@ -1,4 +1,4 @@
UndefinedOffset\SortableGridField\Tests\Forms\RowsTest\Team: UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest\Team:
team1: team1:
Name: Team 1 Name: Team 1
City: Cologne City: Cologne
@ -12,7 +12,7 @@ UndefinedOffset\SortableGridField\Tests\Forms\RowsTest\Team:
City: Auckland City: Auckland
SortOrder: 3 SortOrder: 3
UndefinedOffset\SortableGridField\Tests\Forms\RowsTest\VTeam: UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest\VTeam:
team1: team1:
Name: Team 1 Name: Team 1
City: Cologne City: Cologne

View File

@ -1,11 +1,11 @@
<?php <?php
namespace UndefinedOffset\SortableGridField\Tests\Forms\RowsTest; namespace UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest;
use SilverStripe\Dev\TestOnly; use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
/** /**
* Class \UndefinedOffset\SortableGridField\Tests\Forms\RowsTest\Team * Class \UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest\Team
* *
* @property string Name * @property string Name
* @property string City * @property string City

View File

@ -1,12 +1,12 @@
<?php <?php
namespace UndefinedOffset\SortableGridField\Tests\Forms\RowsTest; namespace UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest;
use SilverStripe\Dev\TestOnly; use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
/** /**
* Class \UndefinedOffset\SortableGridField\Tests\Forms\RowsTest\VTeam * Class \UndefinedOffset\SortableGridField\Tests\Forms\OrderingTest\VTeam
* *
* @property string Name * @property string Name
* @property string City * @property string City

View File

@ -11,13 +11,13 @@ use SilverStripe\Forms\GridField\GridFieldConfig_Base;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows; use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\DummyController; use UndefinedOffset\SortableGridField\Tests\Forms\AutoSortTest\DummyController;
use UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest\Team; use UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest\Team;
use UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest\VTeam; use UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest\VTeam;
/** /**
* Class \UndefinedOffset\SortableGridField\Tests\GridFieldSortableRowsPageTest * Class \UndefinedOffset\SortableGridField\Tests\PageSortingTest
*/ */
class GridFieldSortableRowsPageTest extends SapphireTest class PageSortingTest extends SapphireTest
{ {
/** @var ArrayList */ /** @var ArrayList */
protected $list; protected $list;
@ -29,7 +29,7 @@ class GridFieldSortableRowsPageTest extends SapphireTest
protected $form; protected $form;
/** @var string */ /** @var string */
public static $fixture_file = 'GridFieldSortableRowsPageTest.yml'; public static $fixture_file = 'PageSortingTest.yml';
/** @var array */ /** @var array */
protected static $extra_dataobjects = [ protected static $extra_dataobjects = [

View File

@ -1,4 +1,4 @@
UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest\Team: UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest\Team:
team1: team1:
Name: Team 1 Name: Team 1
City: Cologne City: Cologne
@ -36,7 +36,7 @@ UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest\Team:
City: Auckland City: Auckland
SortOrder: 9 SortOrder: 9
UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest\VTeam: UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest\VTeam:
team1: team1:
Name: Team 1 Name: Team 1
City: Cologne City: Cologne

View File

@ -1,11 +1,11 @@
<?php <?php
namespace UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest; namespace UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest;
use SilverStripe\Dev\TestOnly; use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
/** /**
* Class \UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest\Team * Class \UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest\Team
* *
* @property string Name * @property string Name
* @property string City * @property string City

View File

@ -1,12 +1,12 @@
<?php <?php
namespace UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest; namespace UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest;
use SilverStripe\Dev\TestOnly; use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\Versioned; use SilverStripe\Versioned\Versioned;
/** /**
* Class \UndefinedOffset\SortableGridField\Tests\Forms\RowsPageTest\VTeam * Class \UndefinedOffset\SortableGridField\Tests\Forms\PageSortingTest\VTeam
* *
* @property string Name * @property string Name
* @property string City * @property string City