Skip to content

Commit 342cc1b

Browse files
committed
create additional access group on tests
1 parent 468456c commit 342cc1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/HashtopolisTest.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ public function init($version) {
8888
/*$salt = Util::randomString(30);
8989
$hash = Encryption::passwordHash(HashtopolisTest::USER_PASS, $salt);
9090
$this->user = new User(null, 'testuser', '', $hash, $salt, 1, 0, 0, 0, 3600, AccessUtils::getOrCreateDefaultAccessGroup()->getId(), 0, '', '', '', '');
91-
$this->user = Factory::getUserFactory()->save($this->user);
92-
$accessGroup = new AccessGroupUser(null, 1, $this->user->getId());
93-
Factory::getAccessGroupUserFactory()->save($accessGroup);*/
91+
$this->user = Factory::getUserFactory()->save($this->user);*/
92+
$accessGroup = new AccessGroupUser(null, 1, 1);
93+
Factory::getAccessGroupUserFactory()->save($accessGroup);
9494
$this->apiKey = new ApiKey(null, 0, time() + 3600, 'mykey', 0, 1, 1);
9595
$this->apiKey = Factory::getApiKeyFactory()->save($this->apiKey);
9696
// $versionStore = new StoredValue("version", ($version == 'master') ? explode("+", $VERSION)[0] : $version);

0 commit comments

Comments
 (0)