Ejemplo n.º 1
0
 public function testFillGroups()
 {
     $user = new TestUser(1);
     $user->fillGroups([1, 2]);
     $this->assertSame(1, $user->id);
     $this->assertSame(['GROUP_ID' => [1, 2]], $user->fields);
     $this->assertSame([1, 2], $user->getGroups());
 }