aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/api
AgeCommit message (Collapse)Author
2011-03-26Closes #3202 'count' already supported, added unit testscash
git-svn-id: http://code.elgg.org/elgg/trunk@8840 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-12Fixes #3091 adds load functions for js and csscash
git-svn-id: http://code.elgg.org/elgg/trunk@8675 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-12Refs #3091 registering js and css support priority though does not maintain ↵cash
registration order if items have equal priority git-svn-id: http://code.elgg.org/elgg/trunk@8669 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-12Refs #3091 rewrote the js and css register functions to require a namecash
git-svn-id: http://code.elgg.org/elgg/trunk@8668 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-03-10Fixes #2228: Major cleanup of urls -- remove leading pg/ and trailing / from ↵ewinslow
most urls in core and plugins git-svn-id: http://code.elgg.org/elgg/trunk@8653 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-14Updated trunk to use new annotation functions. Added checks for ↵brettp
annotations_* options vs annotation_* options because it's so easy to confuse. git-svn-id: http://code.elgg.org/elgg/trunk@8223 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-14Refs #2912. Added checks for constraints in dangerous functions. Unit tests ↵brettp
no longer remove all metadata/annotations. git-svn-id: http://code.elgg.org/elgg/trunk@8215 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-13Refs #2907. DRY'd up and abstracted out a lot of metadata / annotation ↵brettp
functions so I can implement #1115 with a clean conscious. git-svn-id: http://code.elgg.org/elgg/trunk@8207 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-11Refs #650. Deprecated get_annotations() for elgg_get_annotations().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8109 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-08Added suggests to the plugins deps system. It parallels the requires system, ↵brettp
but doesn't affect if the plugin can be enabled and only shows up in the deps table on the advanced view. git-svn-id: http://code.elgg.org/elgg/trunk@8070 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-02-04Renamed 'name' to 'plugin' for priority req. Updated unit tests and docs.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@8019 36083f99-b078-4883-b0ff-0f9b5a30f544
2011-01-02Fixes #1986, #2170, #2225, #2759. Integrated ElggPluginPackage and ↵brettp
ElggPluginManifest with ElggPlugin. System now uses ElggPlugin objects to determin plugins. Order is stored in private settings. This absolutely requires running upgrade.php. git-svn-id: http://code.elgg.org/elgg/trunk@7817 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-09Refs #1411. Added elgg_get_entities_from_annotation_calculation(). ↵brettp
Deprecated get_entities_from_annotations_count() and get_entities_from_annotation_calculate_x(). elgg_get_entities_from_annotations() now runs through egef_metadata() for backward compatibility support. git-svn-id: http://code.elgg.org/elgg/trunk@7578 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-08Removed the silly things I was doing in the egef_relationship_count() test.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7568 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-08D'oh. Re-enabled the other getter unit tests.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7563 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-08Refs #1411: Added elgg_get_entity_from_relationship_count().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@7562 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-06Renamed 'elgg' manifest requirment to 'elgg_version' to be more in line with ↵brettp
the current options. Removed assignments in if statements. 1.7 manifest files properly show elgg_version as a requirement. git-svn-id: http://code.elgg.org/elgg/trunk@7550 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-12-03Refs #1986 #2170 #2225. Added semantic manifest.xml support and unit tests. ↵brettp
Also added plugin dependencies system. See engine/tests/test_files/plugin_18/manifest.xml for examples. Not closing tickets pending discussion. git-svn-id: http://code.elgg.org/elgg/trunk@7512 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-30Refs #1986 #2170 #2225 Added ElggPluginManifest, ElggPluginManifestParser, ↵brettp
and its parser classes for 1.7 and 1.8 style manifests. Changed load_plugin_manifest() to use new parser. Added initial unit tests. git-svn-id: http://code.elgg.org/elgg/trunk@7481 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-20Fixed typos in text expectations that were cause elgg_normalize_url unit ↵ewinslow
tests to fial git-svn-id: http://code.elgg.org/elgg/trunk@7377 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-18Refs #2165 adds elgg_get_entities_from_location()cash
git-svn-id: http://code.elgg.org/elgg/trunk@7336 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-18Refs #2165 added elgg_get_entities_from_private_settings()cash
git-svn-id: http://code.elgg.org/elgg/trunk@7335 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-14Added some more unit tests for elgg_normalize_urlewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7310 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-04Fixes #2463: Added support for forwarding to root-level files, e.g. ↵ewinslow
forward('install.php') git-svn-id: http://code.elgg.org/elgg/trunk@7238 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-04Fixes #2463: Added ^ to beginning of normalize_url regex to prevent matching ↵ewinslow
on urls like mod/plugin/page.php. Added unit tests to verify functionality. git-svn-id: http://code.elgg.org/elgg/trunk@7236 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-11-02Added url normalization support to elgg_register_js and elgg_register_cssewinslow
git-svn-id: http://code.elgg.org/elgg/trunk@7207 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-10-31added unit test for previous commitcash
git-svn-id: http://code.elgg.org/elgg/trunk@7170 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-08-21Merged r6534-6559 from 1.7 branch to trunkcash
git-svn-id: http://code.elgg.org/elgg/trunk@6840 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-08-21Merging r6517:6520 from 1.7 branchcash
git-svn-id: http://code.elgg.org/elgg/trunk@6839 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-05-20Fixes #2159: Updated entity getter test to order by guid instead of ↵brettp
time_created. git-svn-id: http://code.elgg.org/elgg/trunk@6119 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-04-05Merged 5530:5604 from 1.7 to trunk.brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5622 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-03-10Added elgg_instanceof().brettp
git-svn-id: http://code.elgg.org/elgg/trunk@5353 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-24Fixes #1542: Pulled in Kevin's patch to add ability to sort by metadata. ↵brettp
Added unit tests for this. git-svn-id: http://code.elgg.org/elgg/trunk@3970 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-23Refs #1543: Added support to have pass an array as a value in the ↵brettp
metadata_name_value_pair option of elgg_get_entities_from_metadata(). Added unit tests for elgg_get_entities_from_metadata(). Cleaned up some documentation for elgg_get_entities_from_metadata(). git-svn-id: http://code.elgg.org/elgg/trunk@3969 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-18Getter API test: Moved the setup and tear down into the construct and ↵brettp
destruct methods. Fixed a few new tests that were failing because of sorting by time. git-svn-id: http://code.elgg.org/elgg/trunk@3948 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-17Refs #1523: elgg_get_entities() uses the constants for defaults and ↵brettp
conditionals. Added some tests to check for no subtypes. Updated the documentation. git-svn-id: http://code.elgg.org/elgg/trunk@3946 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-17Fixes #1526: Big honking warning added to unit tests. Getter test also ↵brettp
deletes its subtypes now. git-svn-id: http://code.elgg.org/elgg/trunk@3945 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-08Fixes #1496: delete_access_collection() invalidates the access collection ↵brettp
cache before attempting to delete. Removed a misplaced unset() in a unit test that was causing test objects not to be properly deleted. git-svn-id: http://code.elgg.org/elgg/trunk@3922 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-06Refs #1200: Added tests to test for false being returned with ↵brettp
elgg_get_entities(). Disabled execution time during unit tests. git-svn-id: http://code.elgg.org/elgg/trunk@3914 36083f99-b078-4883-b0ff-0f9b5a30f544
2010-02-04Refs #1200: Changed logic in elgg_get_entity_type_subtype_where_sql() to ↵brettp
return FALSE if there are no valid subtypes passed. Ignores all invalid subtypes. Added (partial) tests for elgg_get_entities() types and subtypes. git-svn-id: http://code.elgg.org/elgg/trunk@3901 36083f99-b078-4883-b0ff-0f9b5a30f544