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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-06 20:37:47 +0400
committerBart Visscher <bartv@thisnet.nl>2013-02-06 20:37:47 +0400
commita4d3cc798fe8b9ee4d0c13ee89059129b265c6b8 (patch)
treefed3ef65bbd7abf8f57b984c048dfe75e7666f24 /tests
parent09a4424b1f9458bc0ee57c3b5f5c8a2d6a6c3c77 (diff)
Correct lib/public/contacts.php tests
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/public/contacts.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/public/contacts.php b/tests/lib/public/contacts.php
index 23994667a26..ce5d762226b 100644
--- a/tests/lib/public/contacts.php
+++ b/tests/lib/public/contacts.php
@@ -39,7 +39,7 @@ class Test_Contacts extends PHPUnit_Framework_TestCase
public function testEnabledAfterRegister() {
// create mock for the addressbook
- $stub = $this->getMock("SimpleAddressBook", array('getKey'));
+ $stub = $this->getMockForAbstractClass("OCP\IAddressBook", array('getKey'));
// we expect getKey to be called twice:
// first time on register
@@ -65,7 +65,7 @@ class Test_Contacts extends PHPUnit_Framework_TestCase
public function testAddressBookEnumeration() {
// create mock for the addressbook
- $stub = $this->getMock("SimpleAddressBook", array('getKey', 'getDisplayName'));
+ $stub = $this->getMockForAbstractClass("OCP\IAddressBook", array('getKey', 'getDisplayName'));
// setup return for method calls
$stub->expects($this->any())
@@ -85,8 +85,8 @@ class Test_Contacts extends PHPUnit_Framework_TestCase
public function testSearchInAddressBook() {
// create mock for the addressbook
- $stub1 = $this->getMock("SimpleAddressBook1", array('getKey', 'getDisplayName', 'search'));
- $stub2 = $this->getMock("SimpleAddressBook2", array('getKey', 'getDisplayName', 'search'));
+ $stub1 = $this->getMockForAbstractClass("OCP\IAddressBook", array('getKey', 'getDisplayName', 'search'));
+ $stub2 = $this->getMockForAbstractClass("OCP\IAddressBook", array('getKey', 'getDisplayName', 'search'));
$searchResult1 = array(
array('id' => 0, 'FN' => 'Frank Karlitschek', 'EMAIL' => 'a@b.c', 'GEO' => '37.386013;-122.082932'),