* It could definitely be the case that the first 10 entities retrieved are all
* objects. Maybe best to limit to 4 and group by type.
*/
- public function xtestElggAPIGettersValidTypeUsingType() {
+ public function testElggAPIGettersValidTypeUsingType() {
$type_arr = $this->getRandomValidTypes();
$type = $type_arr[0];
$options = array(
}
}
- public function xtestElggAPIGettersValidTypeUsingTypesAsString() {
+ public function testElggAPIGettersValidTypeUsingTypesAsString() {
$type_arr = $this->getRandomValidTypes();
$type = $type_arr[0];
$options = array(
}
}
- public function xtestElggAPIGettersValidTypeUsingTypesAsArray() {
+ public function testElggAPIGettersValidTypeUsingTypesAsArray() {
$type_arr = $this->getRandomValidTypes();
$type = $type_arr[0];
$options = array(
}
}
- public function xtestElggAPIGettersValidTypeUsingTypesAsArrayPlural() {
+ public function testElggAPIGettersValidTypeUsingTypesAsArrayPlural() {
$num = 2;
$types = $this->getRandomValidTypes($num);
$options = array(
*/
- public function xtestElggAPIGettersValidAndInvalidTypes() {
+ public function testElggAPIGettersValidAndInvalidTypes() {
//@todo replace this with $this->getRandomMixedTypes().
$t = $this->getRandomValidTypes();
$valid = $t[0];
$this->assertIdentical($es[0]->getType(), $valid);
}
- public function xtestElggAPIGettersValidAndInvalidTypesPlural() {
+ public function testElggAPIGettersValidAndInvalidTypesPlural() {
$valid_num = 2;
$invalid_num = 3;
$valid = $this->getRandomValidTypes($valid_num);
* This is where the fun logic starts.
*/
- public function xtestElggAPIGettersValidSubtypeUsingSubtypeSingularType() {
+ public function testElggAPIGettersValidSubtypeUsingSubtypeSingularType() {
$types = $this->getRandomValidTypes();
$subtypes = $this->getRandomValidSubtypes($types);
$subtype = $subtypes[0];
}
}
- public function xtestElggAPIGettersValidSubtypeUsingSubtypesAsStringSingularType() {
+ public function testElggAPIGettersValidSubtypeUsingSubtypesAsStringSingularType() {
$types = $this->getRandomValidTypes();
$subtypes = $this->getRandomValidSubtypes($types);
$subtype = $subtypes[0];
}
}
- public function xtestElggAPIGettersValidSubtypeUsingSubtypesAsArraySingularType() {
+ public function testElggAPIGettersValidSubtypeUsingSubtypesAsArraySingularType() {
$types = $this->getRandomValidTypes();
$subtypes = $this->getRandomValidSubtypes($types);
}
}
- public function xtestElggAPIGettersValidSubtypeUsingPluralSubtypesSingularType() {
+ public function testElggAPIGettersValidSubtypeUsingPluralSubtypesSingularType() {
$subtype_num = 2;
$types = $this->getRandomValidTypes();
$subtypes = $this->getRandomValidSubtypes($types, $subtype_num);
each particular type.
FOR THE LOVE OF ALL GOOD PLEASE JUST USE TYPE_SUBTYPE_PAIRS!
*/
- public function xtestElggAPIGettersValidSubtypeUsingPluralSubtypesPluralTypes() {
+ public function testElggAPIGettersValidSubtypeUsingPluralSubtypesPluralTypes() {
$type_num = 2;
$subtype_num = 2;
$types = $this->getRandomValidTypes($type_num);
/*
* This combination will remove all invalid subtypes for this type.
*/
- public function xtestElggAPIGettersValidSubtypeUsingPluralMixedSubtypesSingleType() {
+ public function testElggAPIGettersValidSubtypeUsingPluralMixedSubtypesSingleType() {
$type_num = 1;
$subtype_num = 2;
$types = $this->getRandomValidTypes($type_num);
***************************/
- public function xtestElggAPIGettersTSPValidTypeValidSubtype() {
+ public function testElggAPIGettersTSPValidTypeValidSubtype() {
$type_num = 1;
$subtype_num = 1;
$types = $this->getRandomValidTypes($type_num);
}
}
- public function xtestElggAPIGettersTSPValidTypeValidPluralSubtype() {
+ public function testElggAPIGettersTSPValidTypeValidPluralSubtype() {
$type_num = 1;
$subtype_num = 3;
$types = $this->getRandomValidTypes($type_num);
}
}
- public function xtestElggAPIGettersTSPValidTypeMixedPluralSubtype() {
+ public function testElggAPIGettersTSPValidTypeMixedPluralSubtype() {
$type_num = 1;
$valid_subtype_num = 2;
$types = $this->getRandomValidTypes($type_num);
/*
* Test invalid types.
*/
- public function xtestElggApiGettersInvalidTypeUsingType() {
+ public function testElggApiGettersInvalidTypeUsingType() {
$type_arr = $this->getRandomInvalids();
$type = $type_arr[0];
}
- public function xtestElggApiGettersInvalidTypeUsingTypesAsString() {
+ public function testElggApiGettersInvalidTypeUsingTypesAsString() {
$type_arr = $this->getRandomInvalids();
$type = $type_arr[0];
$this->assertFalse($es);
}
- public function xtestElggApiGettersInvalidTypeUsingTypesAsArray() {
+ public function testElggApiGettersInvalidTypeUsingTypesAsArray() {
$type_arr = $this->getRandomInvalids();
$options = array(
$this->assertFalse($es);
}
- public function xtestElggApiGettersInvalidTypes() {
+ public function testElggApiGettersInvalidTypes() {
$type_arr = $this->getRandomInvalids(2);
$options = array(
$this->assertFalse($es);
}
- public function xtestElggApiGettersInvalidSubtypeValidType() {
+ public function testElggApiGettersInvalidSubtypeValidType() {
$type_num = 1;
$subtype_num = 1;
$types = $this->getRandomValidTypes($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersInvalidSubtypeValidTypes() {
+ public function testElggApiGettersInvalidSubtypeValidTypes() {
$type_num = 2;
$subtype_num = 1;
$types = $this->getRandomValidTypes($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersInvalidSubtypesValidType() {
+ public function testElggApiGettersInvalidSubtypesValidType() {
$type_num = 1;
$subtype_num = 2;
$types = $this->getRandomValidTypes($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersInvalidSubtypesValidTypes() {
+ public function testElggApiGettersInvalidSubtypesValidTypes() {
$type_num = 2;
$subtype_num = 2;
$types = $this->getRandomValidTypes($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersTSPInvalidType() {
+ public function testElggApiGettersTSPInvalidType() {
$type_num = 1;
$types = $this->getRandomInvalids($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersTSPInvalidTypes() {
+ public function testElggApiGettersTSPInvalidTypes() {
$type_num = 2;
$types = $this->getRandomInvalids($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersTSPValidTypeInvalidSubtype() {
+ public function testElggApiGettersTSPValidTypeInvalidSubtype() {
$type_num = 1;
$subtype_num = 1;
$types = $this->getRandomValidTypes($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersTSPValidTypeInvalidSubtypes() {
+ public function testElggApiGettersTSPValidTypeInvalidSubtypes() {
$type_num = 1;
$subtype_num = 2;
$types = $this->getRandomValidTypes($type_num);
$this->assertFalse($es);
}
- public function xtestElggApiGettersTSPValidTypesInvalidSubtypes() {
+ public function testElggApiGettersTSPValidTypesInvalidSubtypes() {
$type_num = 2;
$subtype_num = 2;
$types = $this->getRandomValidTypes($type_num);
- public function xtestElggApiGettersEntityNoSubtype() {
+ public function testElggApiGettersEntityNoSubtype() {
// create an entity we can later delete.
// order by time created and limit by 1 should == this entity.
$e->delete();
}
- public function xtestElggApiGettersEntityNoValueSubtypeNotSet() {
+ public function testElggApiGettersEntityNoValueSubtypeNotSet() {
// create an entity we can later delete.
// order by time created and limit by 1 should == this entity.
$e->delete();
}
- public function xtestElggApiGettersEntityNoValueSubtypeSet() {
+ public function testElggApiGettersEntityNoValueSubtypeSet() {
global $CONFIG;
// create an entity we can later delete.
// order by time created and limit by 1 should == this entity.
//names
- function xtestElggApiGettersEntityMetadataNameValidSingle() {
+ function testElggApiGettersEntityMetadataNameValidSingle() {
// create a new entity with a subtype we know
// use an existing type so it will clean up automatically
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$e->delete();
}
- function xtestElggApiGettersEntityMetadataNameValidMultiple() {
+ function testElggApiGettersEntityMetadataNameValidMultiple() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_names = array();
}
}
- function xtestElggApiGettersEntityMetadataNameInvalidSingle() {
+ function testElggApiGettersEntityMetadataNameInvalidSingle() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
$e->delete();
}
- function xtestElggApiGettersEntityMetadataNameInvalidMultiple() {
+ function testElggApiGettersEntityMetadataNameInvalidMultiple() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
- function xtestElggApiGettersEntityMetadataNameMixedMultiple() {
+ function testElggApiGettersEntityMetadataNameMixedMultiple() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_names = array();
// values
- function xtestElggApiGettersEntityMetadataValueValidSingle() {
+ function testElggApiGettersEntityMetadataValueValidSingle() {
// create a new entity with a subtype we know
// use an existing type so it will clean up automatically
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$e->delete();
}
- function xtestElggApiGettersEntityMetadataValueValidMultiple() {
+ function testElggApiGettersEntityMetadataValueValidMultiple() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_values = array();
}
}
- function xtestElggApiGettersEntityMetadatavalueInvalidSingle() {
+ function testElggApiGettersEntityMetadatavalueInvalidSingle() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
$e->delete();
}
- function xtestElggApiGettersEntityMetadataValueInvalidMultiple() {
+ function testElggApiGettersEntityMetadataValueInvalidMultiple() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
- function xtestElggApiGettersEntityMetadataValueMixedMultiple() {
+ function testElggApiGettersEntityMetadataValueMixedMultiple() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_values = array();
// name_value_pairs
- function xtestElggApiGettersEntityMetadataNVPValidNValidVEquals() {
+ function testElggApiGettersEntityMetadataNVPValidNValidVEquals() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
}
- function xtestElggApiGettersEntityMetadataNVPValidNValidVEqualsTriple() {
+ function testElggApiGettersEntityMetadataNVPValidNValidVEqualsTriple() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
}
- function xtestElggApiGettersEntityMetadataNVPValidNValidVEqualsDouble() {
+ function testElggApiGettersEntityMetadataNVPValidNValidVEqualsDouble() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
}
- function xtestElggApiGettersEntityMetadataNVPValidNValidVEqualsStupid() {
+ function testElggApiGettersEntityMetadataNVPValidNValidVEqualsStupid() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
}
- function xtestElggApiGettersEntityMetadataNVPValidNInvalidV() {
+ function testElggApiGettersEntityMetadataNVPValidNInvalidV() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
- function xtestElggApiGettersEntityMetadataNVPInvalidNValidV() {
+ function testElggApiGettersEntityMetadataNVPInvalidNValidV() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
- function xtestElggApiGettersEntityMetadataNVPValidNValidVOperandIn() {
+ function testElggApiGettersEntityMetadataNVPValidNValidVOperandIn() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
}
- function xtestElggApiGettersEntityMetadataNVPValidNValidVPlural() {
+ function testElggApiGettersEntityMetadataNVPValidNValidVPlural() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
}
- function xtestElggApiGettersEntityMetadataNVPOrderByMDText() {
+ function testElggApiGettersEntityMetadataNVPOrderByMDText() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
}
}
- function xtestElggApiGettersEntityMetadataNVPOrderByMDString() {
+ function testElggApiGettersEntityMetadataNVPOrderByMDString() {
$subtypes = $this->getRandomValidSubtypes(array('object'), 1);
$subtype = $subtypes[0];
$md_name = 'test_metadata_name_' . rand();
/**
* Annotations
*/
- public function xtestElggApiGettersEntitiesFromAnnotation() {
+ public function testElggApiGettersEntitiesFromAnnotation() {
// grab a few different users to annotation
// there will always be at least 2 here because of the construct.
}
// Make sure metadata doesn't affect getting entities by relationship. See #2274
- public function xtestElggApiGettersEntityRelationshipWithMetadata() {
+ public function testElggApiGettersEntityRelationshipWithMetadata() {
$guids = array();
$obj1 = new ElggObject();
}
}
- public function xtestElggApiGettersEntityRelationshipWithOutMetadata() {
+ public function testElggApiGettersEntityRelationshipWithOutMetadata() {
$guids = array();
$obj1 = new ElggObject();
}
}
- public function xtestElggApiGettersEntityRelationshipWithMetadataIncludingRealMetadata() {
+ public function testElggApiGettersEntityRelationshipWithMetadataIncludingRealMetadata() {
$guids = array();
$obj1 = new ElggObject();
}
}
- public function xtestElggApiGettersEntityRelationshipWithMetadataIncludingFakeMetadata() {
+ public function testElggApiGettersEntityRelationshipWithMetadataIncludingFakeMetadata() {
$guids = array();
$obj1 = new ElggObject();
}
}
- public function xtestElggApiGettersEntitySiteSingular() {
+ public function testElggApiGettersEntitySiteSingular() {
global $CONFIG;
$guids = array();
}
}
- public function xtestElggApiGettersEntitySiteSingularAny() {
+ public function testElggApiGettersEntitySiteSingularAny() {
global $CONFIG;
$guids = array();
}
}
- public function xtestElggApiGettersEntitySitePlural() {
+ public function testElggApiGettersEntitySitePlural() {
global $CONFIG;
$guids = array();
}
}
- public function xtestElggApiGettersEntitySitePluralSomeInvalid() {
+ public function testElggApiGettersEntitySitePluralSomeInvalid() {
global $CONFIG;
$guids = array();
}
}
- public function xtestElggApiGettersEntitySitePluralAllInvalid() {
+ public function testElggApiGettersEntitySitePluralAllInvalid() {
global $CONFIG;
$guids = array();
/**
* Private settings
*/
- public function xtestElggApiGettersEntitiesFromPrivateSettings() {
+ public function testElggApiGettersEntitiesFromPrivateSettings() {
// create some test private settings
$setting_name = 'test_setting_name_' . rand();
/**
* Location
*/
- public function xtestElggApiGettersEntitiesFromLocation() {
+ public function testElggApiGettersEntitiesFromLocation() {
// a test location that is out of this world
$lat = 500;