/**
  * Test the entity update
  *
  * @param FlowProperty $entity the entity
  *
  * @depends testCreate
  *
  * @return void
  */
 public function testUpdate($entity)
 {
     $updateData = $this->entityData;
     $updateData['id'] = $entity->getId();
     $updateData['name'] = 'update';
     $updatedEntity = $this->manager->update($updateData);
     $this->checkEntity($updatedEntity, $updateData);
 }
Esempio n. 2
0
 /**
  * {@inheritDoc}
  */
 public function updateReferences()
 {
     /**
      * @var Flow[] $flows
      */
     $flows = $this->getRepository()->findAll();
     foreach ($flows as $flow) {
         $flowProperty = $this->flowPropertyManager->findOneBy(['uuid' => $flow->getFlowPropertyUuid()]);
         $flow->setFlowProperty($flowProperty);
         $this->save($flow);
     }
 }