]> source.dussan.org Git - nextcloud-server.git/commit
Restore DB connection after failure
authorVincent Petry <pvince81@owncloud.com>
Mon, 21 Dec 2015 17:08:08 +0000 (18:08 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 21 Dec 2015 17:14:29 +0000 (18:14 +0100)
commitd7169ffdec2a744683b9fb613dd08d560ed9842f
treea7af0befac2cbd505d7ed5bd78e20e8393f5d432
parent0b913f00c7e49c57d2e0068854b5d4c133b0cb36
Restore DB connection after failure

In case of failure, PHPUnit seems to skip `tearDown`, so any useful
assertion messages cannot be shown because `tearDownAfterClass` is
throwing an error because of database usage.

This commit makes sure we also restore the database in
`tearDownAfterClass` to prevent the data root restoration to fail
tests/lib/testcase.php