Example #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);
 }