Lines Matching +full:- +full:- +full:global
24 $this->remote = new Api();
31 global $conf;
41 global $auth;
57 $this->assertTrue(
58 $this->remote->call('plugin.usermanager.createUser', $params)
60 $this->assertArrayHasKey('user1', $auth->users);
63 $this->assertFalse(
64 $this->remote->call('plugin.usermanager.createUser', $params)
70 global $auth;
87 $this->expectException(AccessDeniedException::class);
88 $this->expectExceptionCode(114);
89 $this->remote->call('plugin.usermanager.createUser', $params);
94 global $auth;
111 $this->expectException(RemoteException::class);
112 $this->expectExceptionCode(401);
113 $this->remote->call('plugin.usermanager.createUser', $params);
118 global $auth;
135 $this->expectException(RemoteException::class);
136 $this->expectExceptionCode(402);
137 $this->remote->call('plugin.usermanager.createUser', $params);
142 global $auth;
159 $this->expectException(RemoteException::class);
160 $this->expectExceptionCode(403);
161 $this->remote->call('plugin.usermanager.createUser', $params);
166 global $auth;
183 $this->expectException(AccessDeniedException::class);
184 $this->expectExceptionCode(404);
185 $this->expectExceptionMessageMatches('/can\'t do addUser/');
186 $this->remote->call('plugin.usermanager.createUser', $params);
191 global $auth;
193 $auth->users = [
216 … $this->assertTrue($this->remote->call('plugin.usermanager.deleteUser', ['user' => 'user1']));
217 $this->assertArrayNotHasKey('user1', $auth->users);
218 $this->assertArrayHasKey('user2', $auth->users);
223 global $auth;
228 $this->expectException(AccessDeniedException::class);
229 $this->expectExceptionCode(114);
230 $this->remote->call('plugin.usermanager.deleteUser', ['user' => 'user1']);
236 global $auth;
241 … $this->assertFalse($this->remote->call('plugin.usermanager.deleteUser', ['user' => 'user1']));
246 global $auth;
251 $this->expectException(AccessDeniedException::class);
252 $this->expectExceptionCode(404);
253 $this->expectExceptionMessageMatches('/can\'t do delUser/');
254 $this->remote->call('plugin.usermanager.deleteUser', ['user' => 'user1']);