mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-06-28 23:49:21 +02:00
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:
parent
a0b9010b90
commit
6eafa1dfdb
|
@ -11,6 +11,9 @@ use SilverStripe\PostgreSQL\PostgreSQLDatabase;
|
||||||
*/
|
*/
|
||||||
class PostgreSQLDatabaseTest extends SapphireTest
|
class PostgreSQLDatabaseTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected $usesDatabase = true;
|
||||||
|
|
||||||
public function testReadOnlyTransaction()
|
public function testReadOnlyTransaction()
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user