aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/objects/entities.php
AgeCommit message (Collapse)Author
2013-10-23replaced all references to trac.elgg.org to the correct GitHub issuesJerome Bakker
2012-05-10Refs #2776. Cleaned up ElggEntity::setMetaData().Brett Profitt
2012-01-04added a unit test for recursive enabling/disablingcash
2011-11-18Fixes #4108 delete() returns bool now and updated unit testsCash Costello
2011-11-18Fixes #4104, #4105 fixed casting in testElggEntityMetadata()Cash Costello
2011-11-17Fixes #4094, #4095 fixes casting issues in unit tests - thanks to andres.fortierCash Costello
2011-10-09Fixes #3948 cleaning up stuff left behind by unit testsCash Costello
2011-10-08Fixes #3946 deleting the temporary entities created in entity unit testsCash Costello
2011-10-08Fixes #3942 fixed all the warnings and notices in the unit testsCash Costello
2011-04-14fixed unit test broken by that last commit (we were returning a string from ↵cash
getAnnotations() when it is supposed to return an array) git-svn-id: http://code.elgg.org/elgg/trunk@8991 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-20Fixes #2963: Rewrote ElggEntity->setMetadata() because yikes. Wrote unit ↵brettp
tests for setting metadata on saved / unsaved entities. git-svn-id: http://code.elgg.org/elgg/trunk@8359 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-13Deprecated ElggEntity->clearMetadata() by ElggEntity->deleteMetadata(). ↵brettp
Disabling entities now disables their annotations and metadata. Enabling entities enables annotations and metadata. Fixes #1115. git-svn-id: http://code.elgg.org/elgg/trunk@8213 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-12Refs #650. Replaced calls to get_annotations() by elgg_get_annotations().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8182 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-08Refs #2543: Core uses the new functions from previous commit.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8078 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-06Refs #1242, Fixes #2775. Pulled common code between get_data() and ↵brettp
get_data_row() into elgg_query_runner(). Caching is now done in the query runner instead of spread across execute_query() and get_data*(). Namespacing cache for callback and single row request. I'm open to better names for that function. Not closing #1242 because the elgg_get_entities*() functions can still return false. git-svn-id: http://code.elgg.org/elgg/trunk@7849 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Fixes #2668 adding getOwnerGUID()cash
git-svn-id: http://code.elgg.org/elgg/trunk@7378 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Fixes #2490: attributes initialize to NULL instead of empty string or 0. ↵ewinslow
Updated tests to reflect this git-svn-id: http://code.elgg.org/elgg/trunk@7376 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Fixes #2473: removes initialise_entity_cache()ewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7365 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-13Cleaning up database after new ElggEntity unit test.nickw
git-svn-id: http://code.elgg.org/elgg/trunk@7302 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-12Updating ElggEntity::clearMetaData() to fail when passed a non-existent ↵nickw
metadata name. Fixes #2273 git-svn-id: http://code.elgg.org/elgg/trunk@7301 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31Refs #2597 - fixes some unit tests broken in the reorg of the data modelscash
git-svn-id: http://code.elgg.org/elgg/trunk@7165 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-30finished the conversion to initializeAttributes()cash
git-svn-id: http://code.elgg.org/elgg/trunk@7145 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-22Removed @license, @copyright, and @author from files. License and copyright ↵brettp
are covered by LICENSE.txt and COPYRIGHT.txt in root. git-svn-id: http://code.elgg.org/elgg/trunk@7118 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-06-02Requesting annotations from a non-existent subtype will now return nothing ↵nickw
instead of everything. This functionality is required to preserve context. git-svn-id: http://code.elgg.org/elgg/trunk@6331 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-05-20Update unit tests for last_action column.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@6118 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-01Fixed unit tests for exportable values after [3977].brettp
git-svn-id: http://code.elgg.org/elgg/trunk@3978 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-13Swallowing all Elgg notices within unit tests.nickw
By default, SimpleTest converts PHP errors into exceptions. This is restricted by adding a call to swallowErrors() within the tearDown() methods. This has also been noted within the unit test skeleton. git-svn-id: http://code.elgg.org/elgg/trunk@3535 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-12Adding unit tests for the ElggObject class.nickw
Restricting testing suite to only be run as a logged-in user. This will not allow the tests to be run from the command line, but this is already the case due to debug static. git-svn-id: http://code.elgg.org/elgg/trunk@3527 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-09Creating an ElggObject unit test.nickw
Fixing issues with the unit test plugin hooks, as well as infinite looping bugs introduced by the unit test skeleton. git-svn-id: http://code.elgg.org/elgg/trunk@3519 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-08Adding unit test for ElggEntity annotations.nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3518 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-10-08Adding generic unit tests for ElggEntity.nickw
git-svn-id: http://code.elgg.org/elgg/trunk@3516 36083f99-b078-4883-b0ff-0f9b5a30f544