From f098a695dbfdd10e0649d07adf2825c989f8f15c Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 9 Aug 2022 14:35:41 +1200 Subject: [PATCH 1/3] NEW Test class for GridField with limited number of items in the list --- code/fields/GridFieldTestNavigation.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 code/fields/GridFieldTestNavigation.php diff --git a/code/fields/GridFieldTestNavigation.php b/code/fields/GridFieldTestNavigation.php new file mode 100644 index 0000000..a032d92 --- /dev/null +++ b/code/fields/GridFieldTestNavigation.php @@ -0,0 +1,19 @@ + Date: Tue, 9 Aug 2022 17:27:24 +1200 Subject: [PATCH 2/3] DEP Update dependencies for CMS 5 --- composer.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2aee686..2a5fc97 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,11 @@ "name": "silverstripe/frameworktest", "description": "Aids core and module developers in testing their code against a set of sample data and behaviour.", "type": "silverstripe-vendormodule", - "keywords": ["silverstripe", "frameworktest", "testing"], + "keywords": [ + "silverstripe", + "frameworktest", + "testing" + ], "license": "BSD-3-Clause", "authors": [ { @@ -14,8 +18,8 @@ "php": "^7.3 || ^8.0", "silverstripe/framework": "^4", "silverstripe/cms": "^4", - "guzzlehttp/guzzle": "^6.3 || ^7.3", - "fzaninotto/faker": "^1.7", + "guzzlehttp/guzzle": "^7.4.5", + "fzaninotto/faker": "^1.9.2", "silverstripe/vendor-plugin": "^1", "silverstripe/registry": "^2" }, From cd4c310e1f10d9fe225dceca99484603f3c6c106 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 30 Aug 2022 13:18:41 +1200 Subject: [PATCH 3/3] ENH Stop using deprecated Versioned methods (#121) --- code/TestPage.php | 4 ++-- code/TestRegistryPage.php | 2 +- code/tasks/FTPageMakerTask.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/TestPage.php b/code/TestPage.php index d8f0931..40d2ae7 100644 --- a/code/TestPage.php +++ b/code/TestPage.php @@ -50,7 +50,7 @@ class TestPage extends Page implements \TestPageInterface $parent = static::getOrCreateParentPage(); $page->ParentID = $parent->ID; $page->write(); - $page->publish('Stage', 'Live'); + $page->copyVersionToStage('Stage', 'Live'); }); } } @@ -72,7 +72,7 @@ class TestPage extends Page implements \TestPageInterface ) ); $parent->write(); - $parent->doPublish(); + $parent->publishRecursive(); } }); diff --git a/code/TestRegistryPage.php b/code/TestRegistryPage.php index 390f1a6..8cdc44a 100644 --- a/code/TestRegistryPage.php +++ b/code/TestRegistryPage.php @@ -21,7 +21,7 @@ class TestRegistryPage extends RegistryPage $page->ParentID = $parent->ID; $page->DataClass = TestRegistryDataObject::class; $page->write(); - $page->publish('Stage', 'Live'); + $page->copyVersionToStage('Stage', 'Live'); }); } } diff --git a/code/tasks/FTPageMakerTask.php b/code/tasks/FTPageMakerTask.php index fa2eb2a..8ac0d71 100644 --- a/code/tasks/FTPageMakerTask.php +++ b/code/tasks/FTPageMakerTask.php @@ -82,7 +82,7 @@ class FTPageMakerTask extends BuildTask $page->ParentID = $parentID; $page->Title = "Test page {$fullPrefix}"; $page->write(); - $page->publish('Stage', 'Live'); + $page->copyVersionToStage('Stage', 'Live'); echo "Created '$page->Title' ($page->ClassName)\n";