aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2023-12-01 20:12:42 +0100
committerAndreas Gohr <andi@splitbrain.org>2024-01-07 13:41:19 +0100
commitd0749387d4e7fa7e3ae6d2c4914c96788f87091e (patch)
tree4a0040731ea5d49b10b5f3446f9a0d5326f391a4
parent0ff4031c084c66f9c78bfc143ba898970844a106 (diff)
downloaddokuwiki-d0749387d4e7fa7e3ae6d2c4914c96788f87091e.tar.gz
dokuwiki-d0749387d4e7fa7e3ae6d2c4914c96788f87091e.zip
fix ApiCall test
-rw-r--r--_test/tests/Remote/ApiCallTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/_test/tests/Remote/ApiCallTest.php b/_test/tests/Remote/ApiCallTest.php
index 43ca33f92..3d5346a7a 100644
--- a/_test/tests/Remote/ApiCallTest.php
+++ b/_test/tests/Remote/ApiCallTest.php
@@ -93,8 +93,8 @@ class ApiCallTest extends \DokuWikiTest
public function testExecution()
{
$call = new ApiCall([$this, 'dummyMethod1']);
- $this->assertEquals('dummy', $call(['bar', 1]), 'positional parameters');
- $this->assertEquals('dummy', $call(['foo' => 'bar', 'bar' => 1]), 'named parameters');
+ $this->assertEquals('dummy', $call(['bar', 1, ['molf']]), 'positional parameters');
+ $this->assertEquals('dummy', $call(['foo' => 'bar', 'bar' => 1, 'baz' =>['molf']]), 'named parameters');
$call = new ApiCall('date');
$this->assertEquals('2023-11-30', $call(['Y-m-d', 1701356591]), 'positional parameters');