Example #1
0
 public function testCreateConfigString()
 {
     global $w2Pconfig;
     $manager = new UpgradeManager();
     $configString = $manager->createConfigString($w2Pconfig);
     $this->assertRegExp('/dbtype/', $configString);
     $this->assertRegExp('/' . $w2Pconfig['dbtype'] . '/', $configString);
     $this->assertRegExp('/dbhost/', $configString);
     $this->assertRegExp('/' . $w2Pconfig['dbhost'] . '/', $configString);
     $this->assertRegExp('/dbname/', $configString);
     $this->assertRegExp('/' . $w2Pconfig['dbname'] . '/', $configString);
     $this->assertRegExp('/dbuser/', $configString);
     $this->assertRegExp('/' . $w2Pconfig['dbuser'] . '/', $configString);
     $this->assertRegExp('/dbpass/', $configString);
     $this->assertRegExp('/' . $w2Pconfig['dbpass'] . '/', $configString);
 }