aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/ContactsManagerTest.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 09:30:18 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 16:34:56 +0100
commitb80ebc96748b45fd2e0ba9323308657c4b00b7ec (patch)
treeec20e0ffa2f86b9b54939a83a785407319f94559 /tests/lib/ContactsManagerTest.php
parent62403d0932be7d620c7bdadc6b4e13eb496fcd6f (diff)
downloadnextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.tar.gz
nextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.zip
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/ContactsManagerTest.php')
-rw-r--r--tests/lib/ContactsManagerTest.php46
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/lib/ContactsManagerTest.php b/tests/lib/ContactsManagerTest.php
index f39d849bb95..5437ca3fbaf 100644
--- a/tests/lib/ContactsManagerTest.php
+++ b/tests/lib/ContactsManagerTest.php
@@ -15,48 +15,48 @@ class ContactsManagerTest extends \Test\TestCase {
}
public function searchProvider(){
- $search1 = array(
- 0 => array(
- 'N' => array(0 => '', 1 => 'Jan', 2 => 'Jansen', 3 => '', 4 => '',),
+ $search1 = [
+ 0 => [
+ 'N' => [0 => '', 1 => 'Jan', 2 => 'Jansen', 3 => '', 4 => '',],
'UID' => '04ada7f5-01f9-4309-9c82-6b555b2170ed',
'FN' => 'Jan Jansen',
'id' => '1',
'addressbook-key' => 'simple:1',
- ),
- 0 => array(
- 'N' => array(0 => '', 1 => 'Tom', 2 => 'Peeters', 3 => '', 4 => '',),
+ ],
+ 0 => [
+ 'N' => [0 => '', 1 => 'Tom', 2 => 'Peeters', 3 => '', 4 => '',],
'UID' => '04ada7f5-01f9-4309-9c82-2345-2345--6b555b2170ed',
'FN' => 'Tom Peeters',
'id' => '2',
'addressbook-key' => 'simple:1',
- ),
- );
+ ],
+ ];
- $search2 = array(
- 0 => array(
- 'N' => array(0 => '', 1 => 'fg', 2 => '', 3 => '', 4 => '',),
+ $search2 = [
+ 0 => [
+ 'N' => [0 => '', 1 => 'fg', 2 => '', 3 => '', 4 => '',],
'UID' => '04ada234h5jh357f5-01f9-4309-9c82-6b555b2170ed',
'FN' => 'Jan Rompuy',
'id' => '1',
'addressbook-key' => 'simple:2',
- ),
- 0 => array(
- 'N' => array(0 => '', 1 => 'fg', 2 => '', 3 => '', 4 => '',),
+ ],
+ 0 => [
+ 'N' => [0 => '', 1 => 'fg', 2 => '', 3 => '', 4 => '',],
'UID' => '04ada7f5-01f9-4309-345kj345j9c82-2345-2345--6b555b2170ed',
'FN' => 'Tim Peeters',
'id' => '2',
'addressbook-key' => 'simple:2',
- ),
- );
+ ],
+ ];
$expectedResult = array_merge($search1, $search2);
- return array(
- array(
+ return [
+ [
$search1,
$search2,
$expectedResult
- )
- );
+ ]
+ ];
}
/**
@@ -164,7 +164,7 @@ class ContactsManagerTest extends \Test\TestCase {
->willReturn('returnMe');
$this->cm->registerAddressBook($addressbook);
- $result = $this->cm->createOrUpdate(array(), $addressbook->getKey());
+ $result = $this->cm->createOrUpdate([], $addressbook->getKey());
$this->assertEquals($result, 'returnMe');
}
@@ -182,7 +182,7 @@ class ContactsManagerTest extends \Test\TestCase {
->method('createOrUpdate');
$this->cm->registerAddressBook($addressbook);
- $result = $this->cm->createOrUpdate(array(), $addressbook->getKey());
+ $result = $this->cm->createOrUpdate([], $addressbook->getKey());
$this->assertEquals($result, null);
}
@@ -197,7 +197,7 @@ class ContactsManagerTest extends \Test\TestCase {
->method('createOrUpdate');
$this->cm->registerAddressBook($addressbook);
- $result = $this->cm->createOrUpdate(array(), 'noaddressbook');
+ $result = $this->cm->createOrUpdate([], 'noaddressbook');
$this->assertEquals($result, null);
}