Force PostgresSQLDatabaseTest

From Framework 3.2 onwards, unit tests are run on the main DB unless the objects are created via fixtures or the $usesDatabase property of SapphireTest are used. This test creates two pages programatically and they appear in the main sitetree after running the test.
This commit is contained in:
Aaron Cooper 2017-02-13 15:19:55 +13:00 committed by GitHub
parent a0b9010b90
commit 6eafa1dfdb

View File

@ -11,6 +11,9 @@ use SilverStripe\PostgreSQL\PostgreSQLDatabase;
*/
class PostgreSQLDatabaseTest extends SapphireTest
{
protected $usesDatabase = true;
public function testReadOnlyTransaction()
{
if (