mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-06-16 09:41:43 +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
|
||||
{
|
||||
|
||||
protected $usesDatabase = true;
|
||||
|
||||
public function testReadOnlyTransaction()
|
||||
{
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue
Block a user