Skip to content
Snippets Groups Projects
Unverified Commit 78abbf72 authored by Joas Schilling's avatar Joas Schilling
Browse files

Make TestCase->overwriteService() work with App classes

parent 4d8c42a4
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,10 @@ class ServerContainer extends SimpleContainer {
public function query($name) {
$name = $this->sanitizeName($name);
if (isset($this[$name])) {
return $this[$name];
}
// In case the service starts with OCA\ we try to find the service in
// the apps container first.
if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment