Skip to content

Commit 19d5453

Browse files
committed
avoid creating multiple relations
1 parent 342cc1b commit 19d5453

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ci/HashtopolisTest.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ public function init($version) {
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, '', '', '', '');
9191
$this->user = Factory::getUserFactory()->save($this->user);*/
92-
$accessGroup = new AccessGroupUser(null, 1, 1);
93-
Factory::getAccessGroupUserFactory()->save($accessGroup);
92+
AccessUtils::getOrCreateDefaultAccessGroup();
9493
$this->apiKey = new ApiKey(null, 0, time() + 3600, 'mykey', 0, 1, 1);
9594
$this->apiKey = Factory::getApiKeyFactory()->save($this->apiKey);
9695
// $versionStore = new StoredValue("version", ($version == 'master') ? explode("+", $VERSION)[0] : $version);

0 commit comments

Comments
 (0)