From 53322f8eef725dbf5d2294012e9989f391af3dc3 Mon Sep 17 00:00:00 2001 From: Chris Penny Date: Wed, 7 Sep 2022 07:08:19 +1200 Subject: [PATCH] Add missing implements TestOnly to test models --- tests/Mocks/Models/BaseCaredHasManyModel.php | 3 ++- tests/Mocks/Models/BaseCaredHasOneModel.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Mocks/Models/BaseCaredHasManyModel.php b/tests/Mocks/Models/BaseCaredHasManyModel.php index 95c903a..bce0dff 100644 --- a/tests/Mocks/Models/BaseCaredHasManyModel.php +++ b/tests/Mocks/Models/BaseCaredHasManyModel.php @@ -2,11 +2,12 @@ namespace Terraformers\KeysForCache\Tests\Mocks\Models; +use SilverStripe\Dev\TestOnly; use SilverStripe\ORM\DataObject; use SilverStripe\Versioned\Versioned; use Terraformers\KeysForCache\Tests\Mocks\Pages\ExtendedCaresPage; -class BaseCaredHasManyModel extends DataObject +class BaseCaredHasManyModel extends DataObject implements TestOnly { private static array $db = [ 'Title' => 'Varchar', diff --git a/tests/Mocks/Models/BaseCaredHasOneModel.php b/tests/Mocks/Models/BaseCaredHasOneModel.php index e6f66e2..86d4d0b 100644 --- a/tests/Mocks/Models/BaseCaredHasOneModel.php +++ b/tests/Mocks/Models/BaseCaredHasOneModel.php @@ -2,11 +2,12 @@ namespace Terraformers\KeysForCache\Tests\Mocks\Models; +use SilverStripe\Dev\TestOnly; use SilverStripe\ORM\DataObject; use SilverStripe\Versioned\Versioned; use Terraformers\KeysForCache\Tests\Mocks\Pages\ExtendedCaresPage; -class BaseCaredHasOneModel extends DataObject +class BaseCaredHasOneModel extends DataObject implements TestOnly { private static array $db = [ 'Title' => 'Varchar',