Esempio n. 1
0
 /**
  * This will test an upgrade run, just like calling /upgrade.php
  */
 public function testUpgradeRun()
 {
     // marked as incomplete because $CONFIG isn't available
     $this->markTestIncomplete();
     try {
         // running database upgrades can through exceptions
         $result = $this->service->run();
         $this->assertTrue(is_array($result));
         $this->assertArrayHasKey("failure", $result);
         $this->assertFalse($result["failure"]);
     } catch (Exception $e) {
         $this->fail($e->getMessage());
     }
 }