function ABTEnviromentTestCase::envTestUserData in Access By Term 7
1 call to ABTEnviromentTestCase::envTestUserData()
File
- ./
abt.test, line 223
Class
Code
function envTestUserData() {
$usr = user_load($this->user->uid);
$this
->tagUser($usr, $this->fields[0]['field_name'], $tids = array(
$this->terms[0][1]->tid,
$this->terms[0][1]->tid,
));
$usr = user_load($this->user->uid);
$tid = $usr->{$this->fields[0]['field_name']}['und'][0]['tid'];
$term = taxonomy_term_load($tid);
$this
->assertTrue(isset($term->name), t('User tagged with term id (@var1)', array(
'@var1' => $tid . ' - ' . $term->tid . ' - ' . $term->name . ' - ' . $this->field_instances['user'][0]['field_name'],
)));
}