/** * Try to create and delete an edge collection not using an edge object */ public function testCreateAndDeleteSystemCollectionWithoutCreatingObject() { $connection = $this->connection; $collectionHandler = new CollectionHandler($connection); $name = '_ArangoDB_PHP_TestSuite_TestCollection_02'; try { $collectionHandler->drop($name); } catch (Exception $e) { //Silence the exception } $options = array('isSystem' => true, 'waitForSync' => true); $collectionHandler->create($name, $options); $resultingCollection = $collectionHandler->get($name); $resultingAttribute = $resultingCollection->getName(); $this->assertTrue($name === $resultingAttribute, 'The created collection name and resulting collection name do not match!'); $resultingCollectionProperties = $collectionHandler->getProperties($name); $this->assertTrue($resultingCollectionProperties->getIsSystem()); $this->assertTrue($resultingCollectionProperties->getWaitForSync()); $collectionHandler->delete($name); }