Przeglądaj źródła

Adjust updatenotification app settings section/priority

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v14.0.0beta1
Julius Härtl 6 lat temu
rodzic
commit
ea8e80c20b
No account linked to committer's email address

+ 2
- 2
apps/updatenotification/lib/Settings/Admin.php Wyświetl plik

@@ -130,7 +130,7 @@ class Admin implements ISettings {
* @return string the section ID, e.g. 'sharing'
*/
public function getSection(): string {
return 'server';
return 'overview';
}

/**
@@ -141,6 +141,6 @@ class Admin implements ISettings {
* E.g.: 70
*/
public function getPriority(): int {
return 1;
return 11;
}
}

+ 2
- 2
apps/updatenotification/tests/Settings/AdminTest.php Wyświetl plik

@@ -140,10 +140,10 @@ class AdminTest extends TestCase {


public function testGetSection() {
$this->assertSame('server', $this->admin->getSection());
$this->assertSame('overview', $this->admin->getSection());
}

public function testGetPriority() {
$this->assertSame(1, $this->admin->getPriority());
$this->assertSame(11, $this->admin->getPriority());
}
}

Ładowanie…
Anuluj
Zapisz