summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Mapping
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2021-01-12 09:15:48 +0000
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-18 13:31:24 +0100
commiteb502c02ff7693bb36318d857985f79e7bac370c (patch)
tree61a7a10839f0c3a19bf8af869af267c484b51e02 /apps/user_ldap/tests/Mapping
parentd79cc8ea6ddc6f562ed0eeffc13cdbedf5df81bb (diff)
downloadnextcloud-server-eb502c02ff7693bb36318d857985f79e7bac370c.tar.gz
nextcloud-server-eb502c02ff7693bb36318d857985f79e7bac370c.zip
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/user_ldap/tests/Mapping')
-rw-r--r--apps/user_ldap/tests/Mapping/AbstractMappingTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
index 35259345f25..05059a50a4b 100644
--- a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
+++ b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
@@ -106,7 +106,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* Hint: successful mapping is tested inherently with mapEntries().
*/
public function testMap() {
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
// test that mapping will not happen when it shall not
$tooLongDN = 'uid=joann,ou=Secret Small Specialized Department,ou=Some Tremendously Important Department,ou=Another Very Important Department,ou=Pretty Meaningful Derpartment,ou=Quite Broad And General Department,ou=The Topmost Department,dc=hugelysuccessfulcompany,dc=com';
@@ -126,7 +126,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* mapping entries
*/
public function testUnmap() {
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
foreach ($data as $entry) {
$result = $mapper->unmap($entry['name']);
@@ -142,7 +142,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* and unsuccessful requests.
*/
public function testGetMethods() {
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
foreach ($data as $entry) {
$fdn = $mapper->getDNByName($entry['name']);
@@ -170,7 +170,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* tests getNamesBySearch() for successful and unsuccessful requests.
*/
public function testSearch() {
- list($mapper,) = $this->initTest();
+ [$mapper,] = $this->initTest();
$names = $mapper->getNamesBySearch('oo', '%', '%');
$this->assertTrue(is_array($names));
@@ -186,7 +186,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* tests setDNbyUUID() for successful and unsuccessful update.
*/
public function testSetDNMethod() {
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
$newDN = 'uid=modified,dc=example,dc=org';
$done = $mapper->setDNbyUUID($newDN, $data[0]['uuid']);
@@ -206,7 +206,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
*/
public function testSetUUIDMethod() {
/** @var AbstractMapping $mapper */
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
$newUUID = 'ABC737-DEF754';
@@ -225,7 +225,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* tests clear() for successful update.
*/
public function testClear() {
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
$done = $mapper->clear();
$this->assertTrue($done);
@@ -239,7 +239,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* tests clear() for successful update.
*/
public function testClearCb() {
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
$callbackCalls = 0;
$test = $this;
@@ -262,7 +262,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
* tests getList() method
*/
public function testList() {
- list($mapper, $data) = $this->initTest();
+ [$mapper, $data] = $this->initTest();
// get all entries without specifying offset or limit
$results = $mapper->getList();
@@ -284,7 +284,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
public function testGetListOfIdsByDn() {
/** @var AbstractMapping $mapper */
- list($mapper,) = $this->initTest();
+ [$mapper,] = $this->initTest();
$listOfDNs = [];
for ($i = 0; $i < 66640; $i++) {