|
|
|
|
@ -89,7 +89,7 @@ class LookupPluginTest extends TestCase {
|
|
|
|
|
public function testSearchNoLookupServerURI() {
|
|
|
|
|
$this->config->expects($this->once())
|
|
|
|
|
->method('getAppValue')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'yes')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'no')
|
|
|
|
|
->willReturn('yes');
|
|
|
|
|
$this->config->expects($this->exactly(2))
|
|
|
|
|
->method('getSystemValueBool')
|
|
|
|
|
@ -118,7 +118,7 @@ class LookupPluginTest extends TestCase {
|
|
|
|
|
public function testSearchNoInternet() {
|
|
|
|
|
$this->config->expects($this->once())
|
|
|
|
|
->method('getAppValue')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'yes')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'no')
|
|
|
|
|
->willReturn('yes');
|
|
|
|
|
$this->config->expects($this->exactly(2))
|
|
|
|
|
->method('getSystemValueBool')
|
|
|
|
|
@ -154,7 +154,7 @@ class LookupPluginTest extends TestCase {
|
|
|
|
|
|
|
|
|
|
$this->config->expects($this->once())
|
|
|
|
|
->method('getAppValue')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'yes')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'no')
|
|
|
|
|
->willReturn('yes');
|
|
|
|
|
$this->config->expects($this->exactly(2))
|
|
|
|
|
->method('getSystemValueBool')
|
|
|
|
|
@ -214,7 +214,7 @@ class LookupPluginTest extends TestCase {
|
|
|
|
|
|
|
|
|
|
$this->config->expects($this->once())
|
|
|
|
|
->method('getAppValue')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'yes')
|
|
|
|
|
->with('files_sharing', 'lookupServerEnabled', 'no')
|
|
|
|
|
->willReturn($LookupEnabled ? 'yes' : 'no');
|
|
|
|
|
if ($GSEnabled || $LookupEnabled) {
|
|
|
|
|
$searchResult->expects($this->once())
|
|
|
|
|
|