Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Dec 21, 2024
1 parent 7c94208 commit 5bf8033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/other_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function test_noaccess_key(): void {
public function test_getfile(): void {
global $USER;
$context = \context_user::instance($USER->id);
$repo = new \repository_s3bucket($USER->id, $context);
$repo = new \repository_s3bucket($this->repo, $context);
$this->data['endpoint'] = 'ap-south-1';
$repo->set_option($this->data);
$draft = file_get_unused_draft_itemid();
Expand All @@ -204,7 +204,7 @@ public function test_getfile(): void {
public function test_getlink(): void {
global $USER;
$context = \context_user::instance($USER->id);
$repo = new \repository_s3bucket($USER->id, $context);
$repo = new \repository_s3bucket($this->repo, $context);
$url = $repo->get_link('tst.jpg');
$this->assertStringContainsString('/s3/', $url);
set_config('s3mock', false);
Expand Down

0 comments on commit 5bf8033

Please sign in to comment.