public function test_setToGroups() { $instance = $this->object; $group = new XoopsGroup(); $group->assignVar('groupid', 1); $groups = array($group); $instance->setToGroups($groups); $x = $this->getPropertyValue('toUsers'); $this->assertTrue(is_array($x)); $this->assertInstanceOf('XoopsUser', $x[0]); }