Skip to content

Commit

Permalink
Add missing implements TestOnly to test models
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Penny authored and chrispenny committed Sep 6, 2022
1 parent 4960cb1 commit 53322f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Mocks/Models/BaseCaredHasManyModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion tests/Mocks/Models/BaseCaredHasOneModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 53322f8

Please sign in to comment.