mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Implement or exclude all pending upgrader deltas
This commit is contained in:
parent
40f8b04501
commit
f65e3627dc
48
.upgrade.yml
48
.upgrade.yml
@ -1010,7 +1010,52 @@ mappings:
|
|||||||
TableListField_PageControls_ss: SilverStripe\Forms\GridField\GridField
|
TableListField_PageControls_ss: SilverStripe\Forms\GridField\GridField
|
||||||
UploadField: SilverStripe\AssetAdmin\Forms\UploadField
|
UploadField: SilverStripe\AssetAdmin\Forms\UploadField
|
||||||
Pagination: SilverStripe\Forms\GridField\GridField
|
Pagination: SilverStripe\Forms\GridField\GridField
|
||||||
|
skipYML:
|
||||||
|
- MySQLPDODatabase
|
||||||
|
- MySQLDatabase
|
||||||
|
- MySQLiConnector
|
||||||
|
- PDOConnector
|
||||||
|
- MySQLSchemaManager
|
||||||
|
- MySQLQueryBuilder
|
||||||
|
- EndsWithFilter
|
||||||
|
- ExactMatchFilter
|
||||||
|
- FulltextFilter
|
||||||
|
- GreaterThanFilter
|
||||||
|
- GreaterThanOrEqualFilter
|
||||||
|
- LessThanFilter
|
||||||
|
- LessThanOrEqualFilter
|
||||||
|
- PartialMatchFilter
|
||||||
|
- StartsWithFilter
|
||||||
|
- WithinRangeFilter
|
||||||
|
- Boolean
|
||||||
|
- Currency
|
||||||
|
- DBClassName
|
||||||
|
- Date
|
||||||
|
- Datetime
|
||||||
|
- DBDatetime
|
||||||
|
- Decimal
|
||||||
|
- Double
|
||||||
|
- Enum
|
||||||
|
- Float
|
||||||
|
- ForeignKey
|
||||||
|
- HTMLText
|
||||||
|
- HTMLFragment
|
||||||
|
- HTMLVarchar
|
||||||
|
- Int
|
||||||
|
- BigInt
|
||||||
|
- Locale
|
||||||
|
- DBLocale
|
||||||
|
- Money
|
||||||
|
- MultiEnum
|
||||||
|
- Percentage
|
||||||
|
- PolymorphicForeignKey
|
||||||
|
- PrimaryKey
|
||||||
|
- Text
|
||||||
|
- Time
|
||||||
|
- Varchar
|
||||||
|
- Year
|
||||||
skipConfigs:
|
skipConfigs:
|
||||||
|
- required_fields
|
||||||
- db
|
- db
|
||||||
- casting
|
- casting
|
||||||
- table_name
|
- table_name
|
||||||
@ -1022,5 +1067,8 @@ skipConfigs:
|
|||||||
- owns
|
- owns
|
||||||
- searchable_fields
|
- searchable_fields
|
||||||
- summary_fields
|
- summary_fields
|
||||||
|
- many_many_extraFields
|
||||||
- default_search_filter_class
|
- default_search_filter_class
|
||||||
- segment
|
- segment
|
||||||
|
excludedPaths:
|
||||||
|
- '*fixtures*'
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
Name: coreconfig
|
Name: coreconfig
|
||||||
---
|
---
|
||||||
SilverStripe\Core\Injector\Injector:
|
SilverStripe\Core\Injector\Injector:
|
||||||
FormSchema:
|
|
||||||
class: SilverStripe\Forms\Schema\FormSchema
|
|
||||||
FixtureFactory:
|
|
||||||
class: SilverStripe\Dev\FixtureFactory
|
|
||||||
SilverStripe\Core\Manifest\ResourceURLGenerator:
|
SilverStripe\Core\Manifest\ResourceURLGenerator:
|
||||||
class: SilverStripe\Control\SimpleResourceURLGenerator
|
class: SilverStripe\Control\SimpleResourceURLGenerator
|
||||||
properties:
|
properties:
|
||||||
|
@ -17,7 +17,7 @@ SilverStripe\Core\Injector\Injector:
|
|||||||
constructor:
|
constructor:
|
||||||
- "error-log"
|
- "error-log"
|
||||||
calls:
|
calls:
|
||||||
DisplayErrorHandler: [ pushHandler, [ %$Monolog\Handler\HandlerInterface ] ]
|
pushDisplayErrorHandler: [ pushHandler, [ %$Monolog\Handler\HandlerInterface ] ]
|
||||||
---
|
---
|
||||||
Name: loggingformatters
|
Name: loggingformatters
|
||||||
---
|
---
|
||||||
|
@ -8,7 +8,7 @@ SilverStripe\Core\Injector\Injector:
|
|||||||
TrustedProxyMiddleware: %$SilverStripe\Control\Middleware\TrustedProxyMiddleware
|
TrustedProxyMiddleware: %$SilverStripe\Control\Middleware\TrustedProxyMiddleware
|
||||||
AllowedHostsMiddleware: %$SilverStripe\Control\Middleware\AllowedHostsMiddleware
|
AllowedHostsMiddleware: %$SilverStripe\Control\Middleware\AllowedHostsMiddleware
|
||||||
SessionMiddleware: %$SilverStripe\Control\Middleware\SessionMiddleware
|
SessionMiddleware: %$SilverStripe\Control\Middleware\SessionMiddleware
|
||||||
RequestProcessor: %$SilverStripe\Control\RequestProcessor
|
RequestProcessorMiddleware: %$SilverStripe\Control\RequestProcessor
|
||||||
FlushMiddleware: %$SilverStripe\Control\Middleware\FlushMiddleware
|
FlushMiddleware: %$SilverStripe\Control\Middleware\FlushMiddleware
|
||||||
SilverStripe\Control\AllowedHostsMiddleware:
|
SilverStripe\Control\AllowedHostsMiddleware:
|
||||||
properties:
|
properties:
|
||||||
|
@ -27,6 +27,7 @@ use SilverStripe\View\TemplateGlobalProvider;
|
|||||||
* @see Director::handleRequest()
|
* @see Director::handleRequest()
|
||||||
* @see Director::$rules
|
* @see Director::$rules
|
||||||
* @see Director::$environment_type
|
* @see Director::$environment_type
|
||||||
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
class Director implements TemplateGlobalProvider
|
class Director implements TemplateGlobalProvider
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ class FixtureBlueprint
|
|||||||
|
|
||||||
/** @config */
|
/** @config */
|
||||||
private static $dependencies = array(
|
private static $dependencies = array(
|
||||||
'factory' => '%$FixtureFactory'
|
'factory' => '%$'.FixtureFactory::class,
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -113,6 +113,7 @@ foreach ($databaseClasses as $class => $details) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load database config
|
// Load database config
|
||||||
|
/** @skipUpgrade */
|
||||||
if (isset($_REQUEST['db'])) {
|
if (isset($_REQUEST['db'])) {
|
||||||
if (isset($_REQUEST['db']['type'])) {
|
if (isset($_REQUEST['db']['type'])) {
|
||||||
$type = $_REQUEST['db']['type'];
|
$type = $_REQUEST['db']['type'];
|
||||||
|
@ -48,6 +48,7 @@ class CompositeField extends FormField
|
|||||||
|
|
||||||
protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_STRUCTURAL;
|
protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_STRUCTURAL;
|
||||||
|
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaComponent = 'CompositeField';
|
protected $schemaComponent = 'CompositeField';
|
||||||
|
|
||||||
public function __construct($children = null)
|
public function __construct($children = null)
|
||||||
|
@ -60,7 +60,7 @@ use SilverStripe\ORM\ValidationResult;
|
|||||||
*/
|
*/
|
||||||
class FieldGroup extends CompositeField
|
class FieldGroup extends CompositeField
|
||||||
{
|
{
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaComponent = 'FieldGroup';
|
protected $schemaComponent = 'FieldGroup';
|
||||||
|
|
||||||
protected $zebra;
|
protected $zebra;
|
||||||
|
@ -55,6 +55,8 @@ class GroupedDropdownField extends DropdownField
|
|||||||
{
|
{
|
||||||
|
|
||||||
// TODO remove this when GroupedDropdownField is implemented
|
// TODO remove this when GroupedDropdownField is implemented
|
||||||
|
// This should be one of SCHEMA_DATA_TYPE_* constants instead
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaDataType = 'GroupedDropdownField';
|
protected $schemaDataType = 'GroupedDropdownField';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,9 +10,10 @@ namespace SilverStripe\Forms;
|
|||||||
class LabelField extends DatalessField
|
class LabelField extends DatalessField
|
||||||
{
|
{
|
||||||
protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_STRUCTURAL;
|
protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_STRUCTURAL;
|
||||||
|
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaComponent = 'LabelField';
|
protected $schemaComponent = 'LabelField';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param null|string $title
|
* @param null|string $title
|
||||||
|
@ -15,7 +15,7 @@ use SilverStripe\Core\Convert;
|
|||||||
*/
|
*/
|
||||||
class LookupField extends MultiSelectField
|
class LookupField extends MultiSelectField
|
||||||
{
|
{
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaComponent = 'LookupField';
|
protected $schemaComponent = 'LookupField';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,6 +18,7 @@ class MoneyField extends FormField
|
|||||||
{
|
{
|
||||||
|
|
||||||
// TODO replace with `FormField::SCHEMA_DATA_TYPE_TEXT` when MoneyField is implemented
|
// TODO replace with `FormField::SCHEMA_DATA_TYPE_TEXT` when MoneyField is implemented
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaDataType = 'MoneyField';
|
protected $schemaDataType = 'MoneyField';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@ use SilverStripe\View\ArrayData;
|
|||||||
*/
|
*/
|
||||||
class OptionsetField extends SingleSelectField
|
class OptionsetField extends SingleSelectField
|
||||||
{
|
{
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaComponent = 'OptionsetField';
|
protected $schemaComponent = 'OptionsetField';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,6 +58,7 @@ class TreeDropdownField extends FormField
|
|||||||
{
|
{
|
||||||
protected $schemaDataType = self::SCHEMA_DATA_TYPE_SINGLESELECT;
|
protected $schemaDataType = self::SCHEMA_DATA_TYPE_SINGLESELECT;
|
||||||
|
|
||||||
|
/** @skipUpgrade */
|
||||||
protected $schemaComponent = 'TreeDropdownField';
|
protected $schemaComponent = 'TreeDropdownField';
|
||||||
|
|
||||||
private static $url_handlers = array(
|
private static $url_handlers = array(
|
||||||
|
@ -500,6 +500,7 @@ class DataObjectSchema
|
|||||||
|
|
||||||
// look for indexable field types
|
// look for indexable field types
|
||||||
foreach ($this->databaseFields($class, false) as $field => $type) {
|
foreach ($this->databaseFields($class, false) as $field => $type) {
|
||||||
|
/** @skipUpgrade */
|
||||||
if ($type === 'ForeignKey' || $type === 'DBClassName') {
|
if ($type === 'ForeignKey' || $type === 'DBClassName') {
|
||||||
$indexes[$field] = [
|
$indexes[$field] = [
|
||||||
'type' => 'index',
|
'type' => 'index',
|
||||||
|
@ -32,6 +32,7 @@ use InvalidArgumentException;
|
|||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @todo Add localization support, see http://open.silverstripe.com/ticket/2931
|
* @todo Add localization support, see http://open.silverstripe.com/ticket/2931
|
||||||
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
class DBDatetime extends DBDate implements TemplateGlobalProvider
|
class DBDatetime extends DBDate implements TemplateGlobalProvider
|
||||||
{
|
{
|
||||||
|
@ -107,6 +107,7 @@ class Group extends DataObject
|
|||||||
* Caution: Only call on instances, not through a singleton.
|
* Caution: Only call on instances, not through a singleton.
|
||||||
* The "root group" fields will be created through {@link SecurityAdmin->EditForm()}.
|
* The "root group" fields will be created through {@link SecurityAdmin->EditForm()}.
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @return FieldList
|
* @return FieldList
|
||||||
*/
|
*/
|
||||||
public function getCMSFields()
|
public function getCMSFields()
|
||||||
@ -150,7 +151,7 @@ class Group extends DataObject
|
|||||||
$config->addComponents(new GridFieldExportButton('buttons-after-left'));
|
$config->addComponents(new GridFieldExportButton('buttons-after-left'));
|
||||||
$config->addComponents(new GridFieldPrintButton('buttons-after-left'));
|
$config->addComponents(new GridFieldPrintButton('buttons-after-left'));
|
||||||
/** @var GridFieldAddExistingAutocompleter $autocompleter */
|
/** @var GridFieldAddExistingAutocompleter $autocompleter */
|
||||||
$autocompleter = $config->getComponentByType('SilverStripe\\Forms\\GridField\\GridFieldAddExistingAutocompleter');
|
$autocompleter = $config->getComponentByType(GridFieldAddExistingAutocompleter::class);
|
||||||
/** @skipUpgrade */
|
/** @skipUpgrade */
|
||||||
$autocompleter
|
$autocompleter
|
||||||
->setResultsFormat('$Title ($Email)')
|
->setResultsFormat('$Title ($Email)')
|
||||||
@ -274,6 +275,7 @@ class Group extends DataObject
|
|||||||
/**
|
/**
|
||||||
* @param bool $includerelations Indicate if the labels returned include relation fields
|
* @param bool $includerelations Indicate if the labels returned include relation fields
|
||||||
* @return array
|
* @return array
|
||||||
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
public function fieldLabels($includerelations = true)
|
public function fieldLabels($includerelations = true)
|
||||||
{
|
{
|
||||||
|
@ -47,6 +47,7 @@ class LoginAttempt extends DataObject
|
|||||||
private static $table_name = "LoginAttempt";
|
private static $table_name = "LoginAttempt";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
* @param bool $includerelations Indicate if the labels returned include relation fields
|
* @param bool $includerelations Indicate if the labels returned include relation fields
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -346,6 +346,7 @@ class Member extends DataObject
|
|||||||
/**
|
/**
|
||||||
* Returns true if this user is locked out
|
* Returns true if this user is locked out
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isLockedOut()
|
public function isLockedOut()
|
||||||
@ -1413,6 +1414,7 @@ class Member extends DataObject
|
|||||||
* Return a {@link FieldList} of fields that would appropriate for editing
|
* Return a {@link FieldList} of fields that would appropriate for editing
|
||||||
* this member.
|
* this member.
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @return FieldList Return a FieldList of fields that would appropriate for
|
* @return FieldList Return a FieldList of fields that would appropriate for
|
||||||
* editing this member.
|
* editing this member.
|
||||||
*/
|
*/
|
||||||
|
@ -16,6 +16,9 @@ class CMSLoginHandler extends LoginHandler
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the CMSMemberLoginForm form
|
* Return the CMSMemberLoginForm form
|
||||||
|
*
|
||||||
|
* @skipUpgrade
|
||||||
|
* @return CMSMemberLoginForm
|
||||||
*/
|
*/
|
||||||
public function loginForm()
|
public function loginForm()
|
||||||
{
|
{
|
||||||
@ -26,6 +29,9 @@ class CMSLoginHandler extends LoginHandler
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return HTTPResponse
|
||||||
|
*/
|
||||||
public function redirectBackToForm()
|
public function redirectBackToForm()
|
||||||
{
|
{
|
||||||
// Redirect back to form
|
// Redirect back to form
|
||||||
|
@ -18,6 +18,7 @@ class CMSMemberAuthenticator extends MemberAuthenticator
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @param ValidationResult|null $result
|
* @param ValidationResult|null $result
|
||||||
* @param Member|null $member
|
* @param Member|null $member
|
||||||
|
@ -86,6 +86,7 @@ class LoginHandler extends RequestHandler
|
|||||||
/**
|
/**
|
||||||
* Return the MemberLoginForm form
|
* Return the MemberLoginForm form
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @return MemberLoginForm
|
* @return MemberLoginForm
|
||||||
*/
|
*/
|
||||||
public function loginForm()
|
public function loginForm()
|
||||||
|
@ -19,6 +19,7 @@ class LostPasswordForm extends MemberLoginForm
|
|||||||
* Create a single EmailField form that has the capability
|
* Create a single EmailField form that has the capability
|
||||||
* of using the MemberLoginForm Authenticator
|
* of using the MemberLoginForm Authenticator
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @return FieldList
|
* @return FieldList
|
||||||
*/
|
*/
|
||||||
public function getFormFields()
|
public function getFormFields()
|
||||||
|
@ -5,7 +5,6 @@ namespace SilverStripe\Security\MemberAuthenticator;
|
|||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPRequest;
|
||||||
use SilverStripe\Core\Extensible;
|
use SilverStripe\Core\Extensible;
|
||||||
use SilverStripe\Dev\Debug;
|
|
||||||
use SilverStripe\ORM\ValidationResult;
|
use SilverStripe\ORM\ValidationResult;
|
||||||
use SilverStripe\Security\Authenticator;
|
use SilverStripe\Security\Authenticator;
|
||||||
use SilverStripe\Security\DefaultAdminService;
|
use SilverStripe\Security\DefaultAdminService;
|
||||||
@ -49,6 +48,7 @@ class MemberAuthenticator implements Authenticator
|
|||||||
/**
|
/**
|
||||||
* Attempt to find and authenticate member if possible from the given data
|
* Attempt to find and authenticate member if possible from the given data
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @param array $data Form submitted data
|
* @param array $data Form submitted data
|
||||||
* @param ValidationResult $result
|
* @param ValidationResult $result
|
||||||
* @param Member $member This third parameter is used in the CMSAuthenticator(s)
|
* @param Member $member This third parameter is used in the CMSAuthenticator(s)
|
||||||
|
@ -119,6 +119,7 @@ class MemberLoginForm extends BaseLoginForm
|
|||||||
/**
|
/**
|
||||||
* Build the FieldList for the login form
|
* Build the FieldList for the login form
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @return FieldList
|
* @return FieldList
|
||||||
*/
|
*/
|
||||||
protected function getFormFields()
|
protected function getFormFields()
|
||||||
|
@ -777,6 +777,7 @@ class Security extends Controller implements TemplateGlobalProvider
|
|||||||
/**
|
/**
|
||||||
* Aggregate tabbed forms from each handler to fragments ready to be rendered.
|
* Aggregate tabbed forms from each handler to fragments ready to be rendered.
|
||||||
*
|
*
|
||||||
|
* @skipUpgrade
|
||||||
* @param array $results
|
* @param array $results
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -9,6 +9,7 @@ if (!getenv('SS_ENVIRONMENT_TYPE')) {
|
|||||||
$loader->setEnvironmentVariable('SS_ENVIRONMENT_TYPE', 'dev');
|
$loader->setEnvironmentVariable('SS_ENVIRONMENT_TYPE', 'dev');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @skipUpgrade */
|
||||||
if (!getenv('SS_DATABASE_CLASS') && !getenv('SS_DATABASE_USERNAME')) {
|
if (!getenv('SS_DATABASE_CLASS') && !getenv('SS_DATABASE_USERNAME')) {
|
||||||
// The default settings let us define the database config via environment vars
|
// The default settings let us define the database config via environment vars
|
||||||
// Database connection, including PDO and legacy ORM support
|
// Database connection, including PDO and legacy ORM support
|
||||||
|
@ -83,6 +83,9 @@ class RSSFeedTest extends SapphireTest
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
public function testRenderWithTemplate()
|
public function testRenderWithTemplate()
|
||||||
{
|
{
|
||||||
$rssFeed = new RSSFeed(new ArrayList(), "", "", "");
|
$rssFeed = new RSSFeed(new ArrayList(), "", "", "");
|
||||||
@ -99,7 +102,7 @@ class RSSFeedTest extends SapphireTest
|
|||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Config::inst()->update(Director::class, 'alternate_base_url', '/');
|
Config::modify()->set(Director::class, 'alternate_base_url', '/');
|
||||||
if (!self::$original_host) {
|
if (!self::$original_host) {
|
||||||
self::$original_host = $_SERVER['HTTP_HOST'];
|
self::$original_host = $_SERVER['HTTP_HOST'];
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@ use SilverStripe\Versioned\Versioned;
|
|||||||
* @todo tests for addStaticVars()
|
* @todo tests for addStaticVars()
|
||||||
* @todo tests for setting statics which are not defined on the object as built-in PHP statics
|
* @todo tests for setting statics which are not defined on the object as built-in PHP statics
|
||||||
* @todo tests for setting statics through extensions (#2387)
|
* @todo tests for setting statics through extensions (#2387)
|
||||||
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
class ObjectTest extends SapphireTest
|
class ObjectTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
@ -9,6 +9,9 @@ use SilverStripe\Forms\RequiredFields;
|
|||||||
use SilverStripe\i18n\i18n;
|
use SilverStripe\i18n\i18n;
|
||||||
use SilverStripe\ORM\FieldType\DBDatetime;
|
use SilverStripe\ORM\FieldType\DBDatetime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class DateFieldTest extends SapphireTest
|
class DateFieldTest extends SapphireTest
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
@ -9,6 +9,7 @@ use SilverStripe\Versioned\Versioned;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Edit controller for this form
|
* Edit controller for this form
|
||||||
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
class TestController extends Controller
|
class TestController extends Controller
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,9 @@ use SilverStripe\Forms\FormRequestHandler;
|
|||||||
use SilverStripe\Forms\Tests\FormRequestHandlerTest\TestForm;
|
use SilverStripe\Forms\Tests\FormRequestHandlerTest\TestForm;
|
||||||
use SilverStripe\Forms\Tests\FormRequestHandlerTest\TestFormRequestHandler;
|
use SilverStripe\Forms\Tests\FormRequestHandlerTest\TestFormRequestHandler;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class FormRequestHandlerTest extends SapphireTest
|
class FormRequestHandlerTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function testCallsActionOnFormHandler()
|
public function testCallsActionOnFormHandler()
|
||||||
|
@ -15,6 +15,9 @@ use SilverStripe\Forms\RequiredFields;
|
|||||||
use SilverStripe\Forms\FormAction;
|
use SilverStripe\Forms\FormAction;
|
||||||
use SilverStripe\Forms\PopoverField;
|
use SilverStripe\Forms\PopoverField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class FormSchemaTest extends SapphireTest
|
class FormSchemaTest extends SapphireTest
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
@ -13,6 +13,9 @@ use SilverStripe\Forms\Tests\GridField\GridFieldTest\Player;
|
|||||||
use SilverStripe\Forms\Tests\GridField\GridFieldTest\Team;
|
use SilverStripe\Forms\Tests\GridField\GridFieldTest\Team;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\ORM\ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class GridFieldAddExistingAutocompleterTest extends FunctionalTest
|
class GridFieldAddExistingAutocompleterTest extends FunctionalTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -17,9 +17,11 @@ use SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\GroupController;
|
|||||||
use SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\PeopleGroup;
|
use SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\PeopleGroup;
|
||||||
use SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Person;
|
use SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest\Person;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class GridFieldDetailFormTest extends FunctionalTest
|
class GridFieldDetailFormTest extends FunctionalTest
|
||||||
{
|
{
|
||||||
|
|
||||||
protected static $fixture_file = 'GridFieldDetailFormTest.yml';
|
protected static $fixture_file = 'GridFieldDetailFormTest.yml';
|
||||||
|
|
||||||
protected static $extra_dataobjects = array(
|
protected static $extra_dataobjects = array(
|
||||||
|
@ -14,6 +14,9 @@ use SilverStripe\Forms\GridField\GridFieldEditButton;
|
|||||||
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
||||||
use SilverStripe\Forms\TextField;
|
use SilverStripe\Forms\TextField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class CategoryController extends Controller implements TestOnly
|
class CategoryController extends Controller implements TestOnly
|
||||||
{
|
{
|
||||||
private static $allowed_actions = array('Form');
|
private static $allowed_actions = array('Form');
|
||||||
|
@ -12,6 +12,9 @@ use SilverStripe\Forms\GridField\GridFieldDetailForm;
|
|||||||
use SilverStripe\Forms\GridField\GridFieldEditButton;
|
use SilverStripe\Forms\GridField\GridFieldEditButton;
|
||||||
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class GroupController extends Controller implements TestOnly
|
class GroupController extends Controller implements TestOnly
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@ use SilverStripe\Forms\GridField\GridFieldEditButton;
|
|||||||
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
||||||
use SilverStripe\Forms\GridField\GridFieldViewButton;
|
use SilverStripe\Forms\GridField\GridFieldViewButton;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class TestController extends Controller implements TestOnly
|
class TestController extends Controller implements TestOnly
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -6,6 +6,9 @@ use SilverStripe\ORM\FieldType\DBClassName;
|
|||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class DBClassNameTest extends SapphireTest
|
class DBClassNameTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -6,6 +6,9 @@ use SilverStripe\ORM\FieldType\DBMoney;
|
|||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class DBCompositeTest extends SapphireTest
|
class DBCompositeTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
namespace SilverStripe\ORM\Tests;
|
namespace SilverStripe\ORM\Tests;
|
||||||
|
|
||||||
use PHPUnit_Framework_Error_Notice;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
use SilverStripe\i18n\i18n;
|
use SilverStripe\i18n\i18n;
|
||||||
use SilverStripe\ORM\FieldType\DBDate;
|
use SilverStripe\ORM\FieldType\DBDate;
|
||||||
use SilverStripe\ORM\FieldType\DBField;
|
|
||||||
use SilverStripe\ORM\FieldType\DBDatetime;
|
use SilverStripe\ORM\FieldType\DBDatetime;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\FieldType\DBField;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
|
||||||
use SilverStripe\Security\Member;
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class DBDateTest extends SapphireTest
|
class DBDateTest extends SapphireTest
|
||||||
{
|
{
|
||||||
protected $oldError = null;
|
protected $oldError = null;
|
||||||
|
@ -5,6 +5,9 @@ namespace SilverStripe\ORM\Tests\DataExtensionTest;
|
|||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\ORM\DataExtension;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class PlayerExtension extends DataExtension implements TestOnly
|
class PlayerExtension extends DataExtension implements TestOnly
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -21,6 +21,9 @@ use SilverStripe\ORM\Tests\DataObjectTest\TeamComment;
|
|||||||
use SilverStripe\ORM\Tests\DataObjectTest\ValidatedObject;
|
use SilverStripe\ORM\Tests\DataObjectTest\ValidatedObject;
|
||||||
use SilverStripe\ORM\Tests\DataObjectTest\Staff;
|
use SilverStripe\ORM\Tests\DataObjectTest\Staff;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class DataListTest extends SapphireTest
|
class DataListTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ use SilverStripe\ORM\Connect\MySQLiConnector;
|
|||||||
use SilverStripe\ORM\Queries\SQLUpdate;
|
use SilverStripe\ORM\Queries\SQLUpdate;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class MySQLDatabaseTest extends SapphireTest
|
class MySQLDatabaseTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,9 +8,11 @@ use SilverStripe\ORM\Connect\PDOConnector;
|
|||||||
use SilverStripe\ORM\Queries\SQLUpdate;
|
use SilverStripe\ORM\Queries\SQLUpdate;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class PDODatabaseTest extends SapphireTest
|
class PDODatabaseTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
protected static $fixture_file = 'MySQLDatabaseTest.yml';
|
protected static $fixture_file = 'MySQLDatabaseTest.yml';
|
||||||
|
|
||||||
protected static $extra_dataobjects = array(
|
protected static $extra_dataobjects = array(
|
||||||
|
@ -6,6 +6,9 @@ use SilverStripe\Control\Controller;
|
|||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\Security\BasicAuth;
|
use SilverStripe\Security\BasicAuth;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class ControllerSecuredWithPermission extends Controller implements TestOnly
|
class ControllerSecuredWithPermission extends Controller implements TestOnly
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -6,6 +6,9 @@ use SilverStripe\Control\Controller;
|
|||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\Security\BasicAuth;
|
use SilverStripe\Security\BasicAuth;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class ControllerSecuredWithoutPermission extends Controller implements TestOnly
|
class ControllerSecuredWithoutPermission extends Controller implements TestOnly
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -19,6 +19,9 @@ use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator;
|
|||||||
use SilverStripe\Security\MemberAuthenticator\MemberLoginForm;
|
use SilverStripe\Security\MemberAuthenticator\MemberLoginForm;
|
||||||
use SilverStripe\Security\Security;
|
use SilverStripe\Security\Security;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class MemberAuthenticatorTest extends SapphireTest
|
class MemberAuthenticatorTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@ use SilverStripe\Security\Permission;
|
|||||||
use SilverStripe\Security\PermissionCheckboxSetField;
|
use SilverStripe\Security\PermissionCheckboxSetField;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class PermissionCheckboxSetFieldTest extends SapphireTest
|
class PermissionCheckboxSetFieldTest extends SapphireTest
|
||||||
{
|
{
|
||||||
protected static $fixture_file = 'PermissionCheckboxSetFieldTest.yml';
|
protected static $fixture_file = 'PermissionCheckboxSetFieldTest.yml';
|
||||||
|
@ -8,6 +8,9 @@ use SilverStripe\Security\PermissionCheckboxSetField;
|
|||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class PermissionTest extends SapphireTest
|
class PermissionTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ use SilverStripe\Security\SecurityToken;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the security class, including log-in form, change password form, etc
|
* Test the security class, including log-in form, change password form, etc
|
||||||
|
*
|
||||||
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
class SecurityTest extends FunctionalTest
|
class SecurityTest extends FunctionalTest
|
||||||
{
|
{
|
||||||
|
@ -5,6 +5,9 @@ namespace SilverStripe\Security\Tests\SecurityTest;
|
|||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class NullController extends Controller implements TestOnly
|
class NullController extends Controller implements TestOnly
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@ use SilverStripe\Dev\TestOnly;
|
|||||||
use SilverStripe\Security\Permission;
|
use SilverStripe\Security\Permission;
|
||||||
use SilverStripe\Security\Security;
|
use SilverStripe\Security\Security;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class SecuredController extends Controller implements TestOnly
|
class SecuredController extends Controller implements TestOnly
|
||||||
{
|
{
|
||||||
private static $allowed_actions = array('index');
|
private static $allowed_actions = array('index');
|
||||||
|
@ -17,6 +17,7 @@ use SilverStripe\Control\SimpleResourceURLGenerator;
|
|||||||
/**
|
/**
|
||||||
* @todo Test that order of combine_files() is correct
|
* @todo Test that order of combine_files() is correct
|
||||||
* @todo Figure out how to clear the modified state of Requirements class - might affect other tests.
|
* @todo Figure out how to clear the modified state of Requirements class - might affect other tests.
|
||||||
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
class RequirementsTest extends SapphireTest
|
class RequirementsTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,9 @@ use SilverStripe\View\Tests\SSViewerTest\SSViewerTestModel;
|
|||||||
use SilverStripe\View\Tests\SSViewerTest\SSViewerTestModelController;
|
use SilverStripe\View\Tests\SSViewerTest\SSViewerTestModelController;
|
||||||
use SilverStripe\View\ViewableData;
|
use SilverStripe\View\ViewableData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
class SSViewerTest extends SapphireTest
|
class SSViewerTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -69,6 +69,9 @@ trait i18nTestManifest
|
|||||||
*/
|
*/
|
||||||
protected $originalLocale = null;
|
protected $originalLocale = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @skipUpgrade
|
||||||
|
*/
|
||||||
public function setupManifest()
|
public function setupManifest()
|
||||||
{
|
{
|
||||||
// force SSViewer_DataPresenter to cache global template vars before we switch to the
|
// force SSViewer_DataPresenter to cache global template vars before we switch to the
|
||||||
|
Loading…
Reference in New Issue
Block a user