Exemple #1
0
 /**
  * Tests if we can persist apps into our configuration
  *
  * @return null
  */
 public function testPersist()
 {
     $appNode = new AppNode(__METHOD__, '/opt/appserver/targetwebapp');
     $this->appService->persist($appNode);
     $apps = $this->appService->getSystemConfiguration()->getApps();
     $foundApp = false;
     foreach ($apps as $app) {
         if ($app->getName() === __METHOD__) {
             $foundApp = true;
             break;
         }
     }
     $this->assertTrue($foundApp);
 }
 /**
  * Dummy test as there currently is now functionality behind the actual method
  *
  * @return null
  *
  * @expectedException \AppserverIo\Lang\NotImplementedException
  */
 public function testPersist()
 {
     $this->service->persist($this->service->getSystemConfiguration());
 }