Elgg\UpgradeServiceTest::testUpgradeRun PHP Method

testUpgradeRun() public method

This will test an upgrade run, just like calling /upgrade.php
public testUpgradeRun ( )
    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());
        }
    }