/** * Test that a return of false is given when the group is invalid * (missing an ID) */ public function testAddUserInvalidGroup() { $ds = $this->buildMock(true, 'save'); $group = new GroupModel($ds); $this->assertFalse($group->addUser(1)); }