diff options
author | Anna Larch <anna@nextcloud.com> | 2024-09-15 18:34:42 +0200 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2024-09-15 23:05:59 +0200 |
commit | eb8cec2b96adc1aff1c032fdb768b5b0c755a7a0 (patch) | |
tree | 9c4b9406f6e6d23abc17c543d2350fdb0c770597 /apps/dav/tests | |
parent | 3fe3f8d1f65002a39713e313fcec6c8c0e12b817 (diff) | |
download | nextcloud-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.php | 4 |
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[ |