aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Lib/PermissionDescriptionTest.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-02-26 14:08:54 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-06-14 12:10:35 +0200
commit20a8da0683dc296860528873f28a8f766c3f328b (patch)
tree04ea2f9b161b9600dfd8efeced9cd040c8b31de0 /tests/unit/Lib/PermissionDescriptionTest.php
parentff018b975b47a57433b5f76634f9948164919e25 (diff)
downloadvolse-hubzilla-20a8da0683dc296860528873f28a8f766c3f328b.tar.gz
volse-hubzilla-20a8da0683dc296860528873f28a8f766c3f328b.tar.bz2
volse-hubzilla-20a8da0683dc296860528873f28a8f766c3f328b.zip
tests: Remove obsolete stubs from Permissions tests
These stubs are no longer needed, as the tests have a db now.
Diffstat (limited to 'tests/unit/Lib/PermissionDescriptionTest.php')
-rw-r--r--tests/unit/Lib/PermissionDescriptionTest.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/unit/Lib/PermissionDescriptionTest.php b/tests/unit/Lib/PermissionDescriptionTest.php
index fdd676f61..1e4b5292c 100644
--- a/tests/unit/Lib/PermissionDescriptionTest.php
+++ b/tests/unit/Lib/PermissionDescriptionTest.php
@@ -46,16 +46,6 @@ class PermissionDescriptionTest extends UnitTestCase {
}
public function testFromStandalonePermission() {
- // Create a stub for global function t()
- $t = $this->getFunctionMock('Zotlabs\Lib', 't');
- $t->expects($this->atLeastOnce())->willReturnCallback(
- function ($string) {
- return $string;
- }
- );
- // Create a mock for global function logger()
- $this->getFunctionMock('Zotlabs\Lib', 'logger');
-
$permDescUnknown = PermissionDescription::fromStandalonePermission(-1);
$permDescSelf = PermissionDescription::fromStandalonePermission(0);
@@ -113,16 +103,6 @@ class PermissionDescriptionTest extends UnitTestCase {
}
public function testGetPermissionDescription() {
- // Create a stub for global function t()
- $t = $this->getFunctionMock('Zotlabs\Lib', 't');
- $t->expects($this->atLeastOnce())->willReturnCallback(
- function ($string) {
- return $string;
- }
- );
- // Create a mock for global function logger()
- $this->getFunctionMock('Zotlabs\Lib', 'logger');
-
// Create a stub for the PermissionDescription class
$stub = $this->createMock(PermissionDescription::class);
$stub->method('get_permission_description')