public function testmark_relationships_deleted() { error_reporting(E_ERROR | E_PARSE); $aclRole = new ACLRole(); //take count of relationship initially and then after method execution and test if relationship count decreases $initial_count = count($aclRole->retrieve_relationships('acl_roles_actions', array('role_id' => '1', 'action_id' => '1', 'access_override' => '90'), 'role_id')); $aclRole->mark_relationships_deleted('1'); $final_count = count($aclRole->retrieve_relationships('acl_roles_actions', array('role_id' => '1', 'action_id' => '1', 'access_override' => '90'), 'role_id')); $this->assertLessThan($initial_count, $final_count); }