Skip to content

Commit 9f2e93b

Browse files
committed
Fixes tests.
1 parent 999db06 commit 9f2e93b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/database/migrations/2015_03_31_130813_attachment_rename.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class AttachmentRename extends Migration {
88

99
public function up() {
10-
$uploads = Helpers::getEnvVar('FS_ENDPOINT');
10+
$uploads = Helpers::getEnvVar('FS_LOCAL_ENDPOINT');
1111
$LRSs = $this->getDirectores($uploads);
1212

1313
// Gets the attachments.

app/locker/repository/File/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Factory {
55
public static function create() {
66
$repo = Helpers::getEnvVar('FS_REPO');
77

8-
return $this->createRepo($repo);
8+
return static::createRepo($repo);
99
}
1010

1111
public static function createRepo($repo) {

app/tests/routes/StatementAttachmentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function deleteDirectory($dir) {
121121

122122
public function tearDown() {
123123
parent::tearDown();
124-
$dir = Helpers::getEnvVar('FS_ENDPOINT').'/'.$this->lrs->_id;
124+
$dir = Helpers::getEnvVar('FS_LOCAL_ENDPOINT').'/'.$this->lrs->_id;
125125
$this->deleteDirectory($dir);
126126
(new \Statement)
127127
->where('lrs_id', new \MongoId($this->lrs->_id))

0 commit comments

Comments
 (0)