@@ -28,7 +28,8 @@ class GraphBasicTest extends
28
28
{
29
29
public function setUp ()
30
30
{
31
- $ this ->connection = getConnection ();
31
+ $ this ->connection = getConnection ();
32
+ $ this ->collectionHandler = new CollectionHandler ($ this ->connection );
32
33
}
33
34
34
35
@@ -216,21 +217,21 @@ public function testAddGetDeleteCollections()
216
217
217
218
static ::assertSame (
218
219
$ this ->graphHandler ->getVertexCollections ($ this ->graph ), array (
219
- 0 => 'ArangoDBPHPTestSuiteTestCollection04 ' ,
220
- 1 => 'orphan1 ' ,
221
- 2 => 'orphan2 ' ,
222
- 3 => 'singleV '
220
+ 0 => 'ArangoDBPHPTestSuiteTestCollection04 ' ,
221
+ 1 => 'orphan1 ' ,
222
+ 2 => 'orphan2 ' ,
223
+ 3 => 'singleV '
223
224
224
- )
225
+ )
225
226
);
226
227
$ this ->graph = $ this ->graphHandler ->deleteOrphanCollection ($ this ->graph , 'orphan2 ' );
227
228
static ::assertSame (
228
229
$ this ->graphHandler ->getVertexCollections ($ this ->graph ), array (
229
- 0 => 'ArangoDBPHPTestSuiteTestCollection04 ' ,
230
- 1 => 'orphan1 ' ,
231
- 2 => 'singleV '
230
+ 0 => 'ArangoDBPHPTestSuiteTestCollection04 ' ,
231
+ 1 => 'orphan1 ' ,
232
+ 2 => 'singleV '
232
233
233
- )
234
+ )
234
235
);
235
236
$ error = null ;
236
237
try {
@@ -282,10 +283,10 @@ public function testAddGetDeleteEdgeCollections()
282
283
283
284
static ::assertSame (
284
285
$ this ->graphHandler ->getEdgeCollections ($ this ->graph ), array (
285
- 0 => 'undirected ' ,
286
- 1 => 'undirected2 '
286
+ 0 => 'undirected ' ,
287
+ 1 => 'undirected2 '
287
288
288
- )
289
+ )
289
290
);
290
291
291
292
$ error = null ;
@@ -313,9 +314,9 @@ public function testAddGetDeleteEdgeCollections()
313
314
314
315
static ::assertSame (
315
316
$ this ->graphHandler ->getEdgeCollections ($ this ->graph ), array (
316
- 0 => 'undirected2 '
317
+ 0 => 'undirected2 '
317
318
318
- )
319
+ )
319
320
);
320
321
321
322
$ error = null ;
@@ -370,19 +371,19 @@ public function tearDown()
370
371
} catch (Exception $ e ) {
371
372
}
372
373
try {
373
- $ this ->graphHandler -> dropGraph ('orphan ' );
374
+ $ this ->collectionHandler -> drop ('orphan ' );
374
375
} catch (Exception $ e ) {
375
376
}
376
377
try {
377
- $ this ->graphHandler -> dropGraph ('orphan1 ' );
378
+ $ this ->collectionHandler -> drop ('orphan1 ' );
378
379
} catch (Exception $ e ) {
379
380
}
380
381
try {
381
- $ this ->graphHandler -> dropGraph ('orphan2 ' );
382
+ $ this ->collectionHandler -> drop ('orphan2 ' );
382
383
} catch (Exception $ e ) {
383
384
}
384
385
try {
385
- $ this ->graphHandler -> dropGraph ('undirected ' );
386
+ $ this ->collectionHandler -> drop ('undirected ' );
386
387
} catch (Exception $ e ) {
387
388
}
388
389
unset($ this ->graph , $ this ->graphHandler , $ this ->connection );
0 commit comments