silverstripe-framework/tests
Ingo Schommer 5d5bb2618a API CHANGE Don't reflect changes in File and Folder property setters on filesystem before write() is called, to ensure that validate() applies in all cases. This fixes a problem where File->setName() would circumvent restrictions in File::$allowed_extensions (fixes #5693)
API CHANGE Removed File->resetFilename(), use File->updateFilesystem() to update the filesystem, and File->getRelativePath() to just update the "Filename" property without any filesystem changes (emulating the old $renamePhysicalFile method argument in resetFilename())
API CHANGE Removed File->autosetFilename(), please set the "Filename" property via File->getRelativePath()
MINOR Added unit tests to FileTest and FolderTest (some of them copied from FileTest, to test Folder behaviour separately) (from r107273)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112563 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-10-15 03:20:47 +00:00
..
api MINOR: Fix tests to cope with ID type cleanup changed recently (from r101970) 2010-10-13 01:23:07 +00:00
control MINOR Added DirectorTest->testURLParam() and DirectorTest->testURLParams() (from r104711) 2010-10-15 01:10:43 +00:00
dev API CHANGE: Don't generate TestOnly DataObjects in the database immediately; instead let test developers specify them in SapphireTest::$extraDataObjects. 2010-04-12 02:03:16 +00:00
fieldtypes BUGFIX: updated tests for Text (from r106205) 2010-10-15 03:00:12 +00:00
filesystem API CHANGE Don't reflect changes in File and Folder property setters on filesystem before write() is called, to ensure that validate() applies in all cases. This fixes a problem where File->setName() would circumvent restrictions in File::$allowed_extensions (fixes #5693) 2010-10-15 03:20:47 +00:00
forms ENHANCEMENT: in referencing a file in combine_files() it should fall back to standard requirement tags if combining has been disabled eg dev mode (from r107091) 2010-10-15 03:09:15 +00:00
i18n MINOR: Save and restore lang state in test (from r104835) 2010-10-15 01:16:13 +00:00
integration BUGFIX: Suppressed errors in SS_HTMLValue->setContent() so it can handle malformed HTML. 2009-10-13 01:44:41 +00:00
javascript MINOR Moved js unit tests from sapphire/javascript/tests to sapphire/tests/javascript to have a consistent location for all tests on server- and clientside 2008-11-01 11:05:38 +00:00
model MINOR Changed ImageTest to use fixture files located in assets/ folder, the filesystem API doesn't support Folder objects with "sapphire/..." paths, which leads to inconsistent results (from r107272) 2010-10-15 03:17:14 +00:00
salad/step_definitions FEATURE: Add 'Given I load the fixture file "app/tests/xyz.yml"' step to salad (from r104232) 2010-10-15 00:02:51 +00:00
search MINOR Fixed TranslatableSearchFormTest for postgresql (strict type assertions) (from r103821) 2010-10-13 04:09:17 +00:00
security MINOR Fixed hardcoded error message in PasswordValidator (fixes #5734) 2010-10-15 03:03:19 +00:00
tasks BUGFIX: Adjust EncryptAllPasswordsTask test to match API for BuildTask (from r96828) 2010-04-12 03:27:27 +00:00
templates MINOR: Added missing file for r101867 (from r101868) 2010-10-13 01:16:41 +00:00
testing API CHANGE: Don't generate TestOnly DataObjects in the database immediately; instead let test developers specify them in SapphireTest::$extraDataObjects. 2010-04-12 02:03:16 +00:00
widgets MINOR: Added explicit listing of testonly dataobjects for widget tests. (from r96830) 2010-04-12 03:27:51 +00:00
ArrayDataTest.php MINOR: More tests for array data (from r99750) 2010-05-25 02:58:06 +00:00
ArrayLibTest.php MINOR Documented and unit tested ArrayLib::invert() (merged from branches/2.3-nzct) 2009-07-17 00:01:06 +00:00
Bare.yml MINOR: Added small fixture YML that just lets you log in, for bootstrapping browser automation tests. (from r94429) 2009-12-16 05:40:59 +00:00
CacheTest.php MINOR: Speed up cache test (1s is as good a test expiry as 8s) (from r98433) 2010-04-13 03:24:37 +00:00
ClassInfoTest.php BUGFIX: Fixed issues with broekn link tracking (from r101138) 2010-10-12 21:42:25 +00:00
ControllerTest.php BUGFIX: invalid use of @covers annotation (from r105889) 2010-10-15 02:52:20 +00:00
ControllerTest.yml MINOR Added ControllerTest for $allowed_actions with permission codes, switched this class to extend FunctionalTest and use get() instead of Director:;test() for this purpose (better login/session mocking capabilities) 2009-09-10 06:34:40 +00:00
ConvertTest.php ENHANCEMENT Convert JSON functions now use the Services_JSON library where appropriate instead of custom code, and if json_decode() or json_encode() are available these are used 2010-05-25 03:52:38 +00:00
CoreTest.php BUGFIX Use BASE_PATH and BASE_URL instead of data from $_SERVER. 2010-04-12 23:15:04 +00:00
DataObjectDecoratorTest.php MINOR: Several changes merged from branches/2.4 2010-10-13 01:35:19 +00:00
DataObjectDecoratorTest.yml BUGFIX #3919: Fix DataObject::dbObject() for decorated fields 2009-04-27 00:44:10 +00:00
DataObjectSetTest.php APICHANGE: changed the modulus offset to 1 to correctly order sets (from r103792) 2010-10-13 04:05:04 +00:00
DataObjectTest.php MINOR: Merges from branches/2.4 2010-10-13 04:04:32 +00:00
DataObjectTest.yml BUGFIX: TeamComment table added to dataobjects list (from r101220) 2010-04-12 22:30:35 +00:00
ErrorPageTest.php API CHANGE: Renamed conflicting classes to have an "SS_" namespace, and renamed existing "SS" namespace to "SS_". The affected classes are: HTTPRequest, HTTPResponse, Query, Database, SSBacktrace, SSCli, SSDatetime, SSDatetimeTest, SSLog, SSLogTest, SSLogEmailWriter, SSLogErrorEmailFormatter, SSLogErrorFileFormatter, SSLogFileWriter and SSZendLog. 2009-10-26 03:06:31 +00:00
ErrorPageTest.yml BUGFIX Fixed empty ErrorPage types in output by setting status code in init() instead of index() and checking for "index" action - introduced in r75096 (see #3960) 2009-05-04 02:20:57 +00:00
FileLinkTrackingTest.php API CHANGE Don't reflect changes in File and Folder property setters on filesystem before write() is called, to ensure that validate() applies in all cases. This fixes a problem where File->setName() would circumvent restrictions in File::$allowed_extensions (fixes #5693) 2010-10-15 03:20:47 +00:00
FileLinkTrackingTest.yml BUGFIX: Fixed image link rewriting and added a test. (from r89011) 2009-10-15 22:40:06 +00:00
HtmlEditorConfigTest.php ENHANCEMENT Added support for loading external plugins (with relative paths) in HtmlEditorConfig. This means relative paths can be separate from the plugin name, and fixes a bug where paths containing dashes were ignored by TinyMCE.init(). 2009-12-16 05:30:46 +00:00
HTTPRequestTest.php API CHANGE: Renamed conflicting classes to have an "SS_" namespace, and renamed existing "SS" namespace to "SS_". The affected classes are: HTTPRequest, HTTPResponse, Query, Database, SSBacktrace, SSCli, SSDatetime, SSDatetimeTest, SSLog, SSLogTest, SSLogEmailWriter, SSLogErrorEmailFormatter, SSLogErrorFileFormatter, SSLogFileWriter and SSZendLog. 2009-10-26 03:06:31 +00:00
HTTPTest.php BUGFIX: preserve the port value if given in HTTP::setGetVar (#5280). BUGFIX: allow username only input rather than user:pass combo. (from r101793) 2010-10-13 01:08:10 +00:00
ManifestBuilderTest.fixture.inc BUGFIX: Fixed manifest builder tests to not have fake data, and to test that classes can be in files with different names 2009-08-08 03:39:12 +00:00
ManifestBuilderTest.php BUGFIX: Fixed issues with broekn link tracking (from r101138) 2010-10-12 21:42:25 +00:00
MemoryLimitTest.php MINOR: Better checking of safe_mode in MemoryLimitTest (from r106187) 2010-10-15 02:58:55 +00:00
ModelAsControllerTest.yml BUGFIX: When finding an old page in the 404 handler, favour existing subpages over historical ones. (from r104468) 2010-10-15 00:28:02 +00:00
ObjectStaticTest.php BUGFIX #4929: Fixed Object::add_static_vars() for uninherited static.s (from r97586) 2010-04-12 22:00:25 +00:00
ObjectTest.php BUGFIX: Update Object::parse_class_spec() to handle arrays. (from r101105) 2010-10-04 04:47:08 +00:00
PhpSyntaxTest.php BUGFIX: Don't rely on the current working directory for any file access; use BASE_PATH. (from r97728) 2010-04-12 23:14:36 +00:00
RedirectorPageTest.php BUGFIX #5259 RedirectorPage and HtmlEditorField TinyMCE integration now prefixes http:// if no prefix is found (from r101668) 2010-10-13 00:57:45 +00:00
RedirectorPageTest.yml BUGFIX #5259 RedirectorPage and HtmlEditorField TinyMCE integration now prefixes http:// if no prefix is found (from r101668) 2010-10-13 00:57:45 +00:00
RequestHandlingTest.php ENHANCEMENT: Added method for $this->request->latestParam() backwards compatibility with Director::urlParam() (from r105890) 2010-10-15 02:53:11 +00:00
SearchContextTest.php API CHANGE: Don't generate TestOnly DataObjects in the database immediately; instead let test developers specify them in SapphireTest::$extraDataObjects. 2010-04-12 02:03:16 +00:00
SearchContextTest.yml BUGFIX Fixed SQL syntax error in MATCH AGAINST clause in FulltextFilter 2009-05-24 21:27:48 +00:00
SessionTest.php APICHANGE: refactored methods in session to use coding conventions (from r105756) 2010-10-15 02:50:43 +00:00
ShortcodeParserTest.php FEATURE: Added the Shortcode API (ShortcodeParser) to allow you to replace simple BBCode-like tags in a string with the results of a callback. 2009-10-11 00:06:57 +00:00
SiteTreeActionsTest.php MINOR Fixed SapphireTest->logInWithPermission() spelling (from r99491) 2010-04-14 04:41:30 +00:00
SiteTreeActionsTest.yml BUGFIX Respecting SiteTree->canDelete() in SiteTree->getCMSActions() 2009-10-17 05:11:23 +00:00
SiteTreeBacklinksTest.php API CHANGE: Added SiteTree::VirtualPages() and SiteTree::DependentPages() accessors. 2010-10-04 04:52:46 +00:00
SiteTreeBacklinksTest.yml API CHANGE: Added SiteTree::VirtualPages() and SiteTree::DependentPages() accessors. 2010-10-04 04:52:46 +00:00
SiteTreeBrokenLinksTest.php BUGFIX: Fixed issues with broekn link tracking (from r101138) 2010-10-12 21:42:25 +00:00
SiteTreeBrokenLinksTest.yml ENHANCMENT improved reporting around broken links/files (from r88993) 2009-10-15 22:39:26 +00:00
SiteTreePermissionsTest.php MINOR Fixed SiteTreeTest and SiteTreePermissionsTest to work alongside subsites module (SiteTreeSubsites changes the canEdit() behaviour) (from r104798) 2010-10-15 01:14:24 +00:00
SiteTreePermissionsTest.yml MINOR added more documentation around SiteConfig. Also wrote unit tests for permissions inheritance off it. (from r86132) 2009-10-15 21:53:15 +00:00
SiteTreeTest.php BUGFIX: fixed phpunit directive (from r105907) 2010-10-15 02:53:46 +00:00
SiteTreeTest.yml ENHANCEMENT: Updated the SiteTree URLSegment conflict resolver to work with nested URLs. 2009-10-11 00:07:21 +00:00
SoapModelAccessTest.php API CHANGE: Don't generate TestOnly DataObjects in the database immediately; instead let test developers specify them in SapphireTest::$extraDataObjects. 2010-04-12 02:03:16 +00:00
SoapModelAccessTest.yml (merged from branches/roa. use "svn log -c <changeset> -g <module-svn-path>" for detailed commit message) 2008-08-11 03:03:52 +00:00
SQLFormatterTest.php BUGFIX Fixed newlines working properly across different platforms - Windows, for example, won't work properly with just \n so use PHP_EOL for a cross-platform solution 2009-11-21 01:43:54 +00:00
SQLQueryTest.php MINOR remove sort direction when running canSortBy. Also added test coverage for this. (from r96428) (from r98138) 2010-04-13 02:16:50 +00:00
SSViewerCacheBlockTest.php API CHANGE: Allow cached blocks within control and if blocks, as long as that control or if block is contained within an uncached block, not a cached block (from r101833) 2010-10-13 01:14:49 +00:00
SSViewerTest.php BUGFIX: Updated SiteConfig-based theme selection to remove inappropriate coupling from SSViewer (from r98263) 2010-04-13 03:18:10 +00:00
TokenisedRegularExpressionTest.php MINOR Unified @package PHPdoc (added where missing, removed duplicates) 2008-06-15 13:33:53 +00:00
TransactionTest.php BUGFIX: get a object inside transaction block will alway exist (from r101592) 2010-10-13 00:49:57 +00:00
ViewableDataTest.php BUGFIX ViewableData->castingClass() cuts off last character of a casting definition if it has bracketed arguments (fixes #5536, thanks ajshort) (from r104063) 2010-10-14 23:56:11 +00:00
WebserverRoutingTest.php BUGFIX Trimming expected output of WebserverRoutingTest (newlines before the "ok" string were causing failures on PHP 5.3) (from r103912) 2010-10-14 23:51:34 +00:00