You are here

function UserRelationshipsApiTestCase::testUserRelationshipsReciprocalTypes in User Relationships 6

File

user_relationships_api/tests/user_relationships_api.api.test, line 257
User Relationships API testcase @author Alex Karshakevich http://drupal.org/user/183217

Class

UserRelationshipsApiTestCase
@file User Relationships API testcase @author Alex Karshakevich http://drupal.org/user/183217

Code

function testUserRelationshipsReciprocalTypes() {
  $rtypes = user_relationships_types_load();
  $rtype = $rtypes[$this->rtypes['approval-reciprocal']->rtid];
  $this
    ->assertTrue($rtype->is_reciprocal);
  $rtype = $rtypes[$this->rtypes['approval-oneway']->rtid];
  $this
    ->assertFalse($rtype->is_reciprocal);
  $rtype = $rtypes[$this->rtypes['approval']->rtid];
  $this
    ->assertFalse($rtype->is_reciprocal);
}