mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
7073246a37
Note that the main tests are added as behat tests in the admin module
16 lines
329 B
PHP
16 lines
329 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Forms\Tests\GridField\GridFieldDetailFormTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\View\ArrayData;
|
|
|
|
class ArrayDataWithID extends ArrayData implements TestOnly
|
|
{
|
|
public function __construct($value = [])
|
|
{
|
|
$value['ID'] ??= 0;
|
|
parent::__construct($value);
|
|
}
|
|
}
|