function UserRelationshipsTestCase::testUserRelationshipsReciprocalTypes in User Relationships 7
File
- ./
user_relationships.test, line 481 - User Relationships API tests @author Alex Karshakevich http://drupal.org/user/183217
Class
- UserRelationshipsTestCase
- Test cases für UR API.
Code
function testUserRelationshipsReciprocalTypes() {
$this
->createDefaultRelationshipTypes();
$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);
}