Skip to content

Commit

Permalink
Bring tests inline with new interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Oct 31, 2024
1 parent e2cc4b8 commit da949b9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/model/TestCustomisableProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand Down Expand Up @@ -83,6 +81,6 @@ public function customiseLineItem(
);
}

return $items;
return;
}
}

0 comments on commit da949b9

Please sign in to comment.