From da949b90c3d88e285dabb5c046813aa4ce08405e Mon Sep 17 00:00:00 2001 From: Morven Lewis-Everley Date: Thu, 31 Oct 2024 00:12:32 +0000 Subject: [PATCH] Bring tests inline with new interfaces --- tests/model/TestCustomisableProduct.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/model/TestCustomisableProduct.php b/tests/model/TestCustomisableProduct.php index 7e2fed9..5c78bd8 100644 --- a/tests/model/TestCustomisableProduct.php +++ b/tests/model/TestCustomisableProduct.php @@ -20,8 +20,7 @@ class TestCustomisableProduct extends TestProduct implements TestOnly, LineItemC public function modifyItemPrice( LineItemFactory $factory, array $data = [] - ): SS_List { - $items = ArrayList::create(); + ): void { $item = $factory->getItem(); $product = $item->findStockItem(); @@ -47,14 +46,13 @@ public function modifyItemPrice( ); } - return $items; + return; } public function customiseLineItem( LineItemFactory $factory, array $data = [] - ): SS_List { - $items = ArrayList::create(); + ): void { $item = $factory->getItem(); $product = $item->findStockItem(); @@ -83,6 +81,6 @@ public function customiseLineItem( ); } - return $items; + return; } }