From d18f92e411b762de9a86ea1cc23bf7b77633558b Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 28 May 2024 13:46:12 +1200 Subject: [PATCH] MNT Change set of ids to limit in NonRelationalData test class --- code/fields/NestedGridField/NonRelationalData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/fields/NestedGridField/NonRelationalData.php b/code/fields/NestedGridField/NonRelationalData.php index 2b918f8..3c77a5a 100644 --- a/code/fields/NestedGridField/NonRelationalData.php +++ b/code/fields/NestedGridField/NonRelationalData.php @@ -16,7 +16,7 @@ class NonRelationalData extends DataObject public function getList() { $list = ArrayList::create(); - $data = Company::get()->byIDs([1,2,3,4,5]); + $data = Company::get()->limit(5); foreach ($data as $value) { $list->push($value); }