Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobia De Koninck <tobia@ledfan.be>2018-02-11 13:39:38 +0300
committerTobia De Koninck <tobia@ledfan.be>2018-02-11 13:39:38 +0300
commit8303b6183915a85b22aae48016fd60bf3cd09088 (patch)
tree58d49b48aa2aa29e6c0cbf44b18733baa5c4ffe0 /tests/unit
parent0e25fb872a2742dd5e00689decc66e1c26b0685a (diff)
Make OJSXC_Userid a static value and register hooks without using Application/Container
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/HooksTest.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/unit/HooksTest.php b/tests/unit/HooksTest.php
index 2c67ed8..df57bf6 100644
--- a/tests/unit/HooksTest.php
+++ b/tests/unit/HooksTest.php
@@ -77,24 +77,6 @@ class HooksTest extends TestCase
);
}
-
- public function testRegister()
- {
- $this->userManager->expects($this->at(0))
- ->method('listen')
- ->with('\OC\User', 'postCreateUser', [$this->hooks, 'onCreateUser']);
-
- $this->userManager->expects($this->at(1))
- ->method('listen')
- ->with('\OC\User', 'postDelete', [$this->hooks, 'onDeleteUser']);
-
- $this->userSession->expects($this->once())
- ->method('listen')
- ->with('\OC\User', 'changeUser', [$this->hooks, 'onChangeUser']);
-
- $this->hooks->register();
- }
-
public function testOnCreateUser()
{
$user = $this->getMockBuilder('OCP\IUser')->disableOriginalConstructor()->getMock();