Skip to content

Commit

Permalink
implement test method
Browse files Browse the repository at this point in the history
  • Loading branch information
summersab committed Jan 27, 2023
1 parent 61700ec commit 9cdfd1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/SystemConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SystemConfig {
protected $sensitiveValues = [
'instanceid' => true,
'datadirectory' => true,
'appdataroot' => true,
'dbname' => true,
'dbhost' => true,
'dbpassword' => true,
Expand Down
5 changes: 5 additions & 0 deletions tests/lib/Files/AppData/AppDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ protected function setUp(): void {
->method('getValue')
->with('instanceid', null)
->willReturn('iid');

$this->systemConfig->expects($this->any())
->method('getValue')
->with('appdataroot', null)
->willReturn('/path');
}

private function setupAppFolder() {
Expand Down

0 comments on commit 9cdfd1e

Please sign in to comment.