aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-09-15 18:34:42 +0200
committerAnna Larch <anna@nextcloud.com>2024-09-15 23:05:59 +0200
commiteb8cec2b96adc1aff1c032fdb768b5b0c755a7a0 (patch)
tree9c4b9406f6e6d23abc17c543d2350fdb0c770597 /apps/dav/tests
parent3fe3f8d1f65002a39713e313fcec6c8c0e12b817 (diff)
downloadnextcloud-server-eb8cec2b96adc1aff1c032fdb768b5b0c755a7a0.tar.gz
nextcloud-server-eb8cec2b96adc1aff1c032fdb768b5b0c755a7a0.zip
test: cast node name and data to stringfix/cast-node-names-to-string
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/Upload/AssemblyStreamTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/Upload/AssemblyStreamTest.php b/apps/dav/tests/unit/Upload/AssemblyStreamTest.php
index 89ae0bc1fea..a8517bf757c 100644
--- a/apps/dav/tests/unit/Upload/AssemblyStreamTest.php
+++ b/apps/dav/tests/unit/Upload/AssemblyStreamTest.php
@@ -57,9 +57,9 @@ class AssemblyStreamTest extends \Test\TestCase {
$tonofnodes = [];
$tonofdata = '';
for ($i = 0; $i < 101; $i++) {
- $thisdata = rand(0, 100); // variable length and content
+ $thisdata = random_int(0, 100); // variable length and content
$tonofdata .= $thisdata;
- array_push($tonofnodes, $this->buildNode($i, $thisdata));
+ $tonofnodes[] = $this->buildNode((string)$i, (string)$thisdata);
}
return[