We have moved to Github. Please open tickets there.

Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#4126 closed Defect (fixed)

Wrong assertion in entity_getter_functions.php passes due to type casting

Reported by: andres.fortier Owned by:
Priority: low Milestone: Elgg 1.8.2
Component: Core Version: 1.8.1
Severity: trivial Keywords:
Cc: brett@… Difficulty:

Description

In line 2581:

$this->assertTrue(check_entity_relationship($fan_entity->guid, $relationship_name, $e->guid));

However check_entity_relationship() returns an object that represents the relationship. The test passes since the object is casted to a boolean (true).

Change History (3)

comment:1 Changed 18 months ago by cash

  • Milestone changed from Needs Review to Elgg 1.8.2
  • Priority changed from normal to low

comment:2 Changed 18 months ago by cash

  • Resolution set to fixed
  • Status changed from new to closed

Fixes #4126 fixed test for checking relationship existence

Changeset: c872edbb476cf0a0c742c6e7a987096e15464f00

comment:3 Changed 18 months ago by cash

Fixes #4126 fixed test for checking relationship existence

Changeset: 77452e60a96e17f56e2bf7e88922d44f1fd7ef37

Note: See TracTickets for help on using tickets.