Skip to content

Commit 56e841e

Browse files
committed
Changes to support the new AQL function namespace separator '::' instead of the old one ':' .
This renders the client incompatible to ArangoDB versions <1.4.0
1 parent 75971dd commit 56e841e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/AqlUserFunctionTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function setUp()
4141
public function testRegisterListAndUnregisterAqlUserFunctionWithInitialConfig()
4242
{
4343

44-
$name = 'myFunctions:myFunction';
44+
$name = 'myFunctions::myFunction';
4545
$code = 'function (celsius) { return celsius * 1.8 + 32; }';
4646

4747
$array = array(
@@ -79,7 +79,7 @@ public function testRegisterListAndUnregisterAqlUserFunctionWithInitialConfig()
7979
public function testRegisterListAndUnregisterAqlUserFunctionUsingShortcut()
8080
{
8181

82-
$name = 'myFunctions:myFunction';
82+
$name = 'myFunctions::myFunction';
8383
$code = 'function (celsius) { return celsius * 1.8 + 32; }';
8484

8585
$userFunction = new AqlUserFunction($this->connection);
@@ -111,7 +111,7 @@ public function testRegisterListAndUnregisterAqlUserFunctionUsingShortcut()
111111
*/
112112
public function testRegisterListAndUnregisterAqlUserFunctionWithGettersAndSetters()
113113
{
114-
$name = 'myFunctions:myFunction';
114+
$name = 'myFunctions::myFunction';
115115
$code = 'function (celsius) { return celsius * 1.8 + 32; }';
116116

117117
$userFunction = new AqlUserFunction($this->connection);
@@ -158,7 +158,7 @@ public function testRegisterListAndUnregisterAqlUserFunctionWithGettersAndSetter
158158
public function testRegisterListAndUnregisterAqlUserFunctionWithWithMagicSettersAndGetters()
159159
{
160160

161-
$name = 'myFunctions:myFunction';
161+
$name = 'myFunctions::myFunction';
162162
$code = 'function (celsius) { return celsius * 1.8 + 32; }';
163163

164164

@@ -206,7 +206,7 @@ public function testRegisterListAndUnregisterAqlUserFunctionWithWithMagicSetters
206206
public function testReRegisterListAndUnregisterAqlUserFunctionTwice()
207207
{
208208

209-
$name = 'myFunctions:myFunction';
209+
$name = 'myFunctions::myFunction';
210210
$code = 'function (celsius) { return celsius * 1.8 + 32; }';
211211

212212

@@ -261,8 +261,8 @@ public function testReRegisterListAndUnregisterAqlUserFunctionTwice()
261261
public function testGetAQLFunctionsWithNamespaceFilter()
262262
{
263263

264-
$name1 = 'myFunctions:myFunction';
265-
$name2 = 'myFunctions1:myFunction';
264+
$name1 = 'myFunctions::myFunction';
265+
$name2 = 'myFunctions1::myFunction';
266266
$code = 'function (celsius) { return celsius * 1.8 + 32; }';
267267

268268
//Setup
@@ -296,8 +296,8 @@ public function testGetAQLFunctionsWithNamespaceFilter()
296296
public function testUnregisterAQLFunctionsOnNamespace()
297297
{
298298

299-
$name1 = 'myFunctions:myFunction1';
300-
$name2 = 'myFunctions:myFunction2';
299+
$name1 = 'myFunctions::myFunction1';
300+
$name2 = 'myFunctions::myFunction2';
301301
$code = 'function (celsius) { return celsius * 1.8 + 32; }';
302302

303303
//Setup

0 commit comments

Comments
 (0)