Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Remove carrier from constructor argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash Smith committed Dec 12, 2016
1 parent c90ab95 commit 04b4d74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/Model/Carrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class Carrier extends AbstractCarrier implements CarrierInterface
* @param ResultFactory $rateResultFactory
* @param MethodFactory $rateMethodFactory
* @param Rounder $rounder
* @param LibCarrier $carrier
* @param array $data
*/
public function __construct(
Expand All @@ -73,7 +72,6 @@ public function __construct(
ResultFactory $rateResultFactory,
MethodFactory $rateMethodFactory,
Rounder $rounder,
LibCarrier $carrier,
array $data = []
) {
$this->rateResultFactory = $rateResultFactory;
Expand Down
3 changes: 1 addition & 2 deletions src/Test/Unit/Model/CarrierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ protected function setUp()
$logger,
$this->rateResultFactory,
$this->rateMethodFactory,
$this->rounder,
$this->libCarrier
$this->rounder
);
$this->model->setCarrier($this->libCarrier);
}
Expand Down

0 comments on commit 04b4d74

Please sign in to comment.