From 9812d43a3f73756c8074c89849aaa27a618afab9 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 20 Jun 2018 17:08:20 +1200 Subject: [PATCH] Disable transactions in UserDefinedFormTest to prevent fixture leaks --- .travis.yml | 4 ++-- tests/Model/UserDefinedFormTest.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0091504..d9258f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,9 +11,9 @@ matrix: - php: 7.0 env: DB=MYSQL RECIPE_VERSION=1.1.x-dev PHPUNIT_TEST=1 - php: 7.1 - env: DB=MYSQL RECIPE_VERSION=1.2.x-dev PHPUNIT_COVERAGE_TEST=1 + env: DB=MYSQL RECIPE_VERSION=4.2.x-dev PHPUNIT_COVERAGE_TEST=1 - php: 7.2 - env: DB=MYSQL RECIPE_VERSION=1.x-dev PHPUNIT_TEST=1 + env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_TEST=1 before_script: # Init PHP diff --git a/tests/Model/UserDefinedFormTest.php b/tests/Model/UserDefinedFormTest.php index d93e4ab..ef6a638 100644 --- a/tests/Model/UserDefinedFormTest.php +++ b/tests/Model/UserDefinedFormTest.php @@ -29,6 +29,8 @@ use SilverStripe\Versioned\Versioned; */ class UserDefinedFormTest extends FunctionalTest { + protected $usesTransactions = false; + protected static $fixture_file = '../UserFormsTest.yml'; protected static $required_extensions = [