persist() public méthode

Persists the passed datasource.
public persist ( AppserverIo\Configuration\Interfaces\NodeInterface $datasourceNode ) : void
$datasourceNode AppserverIo\Configuration\Interfaces\NodeInterface The datasource to persist
Résultat void
 /**
  * Test if the load() method returns the correct app node.
  *
  * @return null
  */
 public function testLoad()
 {
     $datasourceNode = new DatasourceNode();
     $this->service->persist($datasourceNode);
     $this->assertSame($datasourceNode, $this->service->load($datasourceNode->getPrimaryKey()));
 }