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()); }
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()); }