Skip to content

Commit b17e8cb

Browse files
committed
no manual init for test needed
1 parent d2059a5 commit b17e8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/HashtopolisTest.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function init($version) {
7070
global $PEPPER, $VERSION;
7171

7272
// drop old data and create empty DB
73-
Factory::getAgentFactory()->getDB()->query("DROP DATABASE IF EXISTS hashtopolis");
73+
/*Factory::getAgentFactory()->getDB()->query("DROP DATABASE IF EXISTS hashtopolis");
7474
Factory::getAgentFactory()->getDB()->query("CREATE DATABASE hashtopolis");
7575
Factory::getAgentFactory()->getDB()->query("USE hashtopolis");
7676
@@ -92,7 +92,7 @@ public function init($version) {
9292
$accessGroup = new AccessGroupUser(null, 1, $this->user->getId());
9393
Factory::getAccessGroupUserFactory()->save($accessGroup);
9494
$this->apiKey = new ApiKey(null, 0, time() + 3600, 'mykey', 0, $this->user->getId(), 1);
95-
$this->apiKey = Factory::getApiKeyFactory()->save($this->apiKey);
95+
$this->apiKey = Factory::getApiKeyFactory()->save($this->apiKey);*/
9696
// $versionStore = new StoredValue("version", ($version == 'master') ? explode("+", $VERSION)[0] : $version);
9797
// Factory::getStoredValueFactory()->save($versionStore);
9898
// $buildStore = new StoredValue("build", ($version == 'master') ? Util::getGitCommit(true) : $this->RELEASES[$version]);

0 commit comments

Comments
 (0)