run() публичный Метод

Run the upgrade process
public run ( ) : array
Результат array $result Associative array containing possible errors
Пример #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());
     }
 }