diff --git a/Plugin/Quote/Address/RateRequestPlugin.php b/Plugin/Quote/Address/RateRequestPlugin.php new file mode 100644 index 000000000..631308a97 --- /dev/null +++ b/Plugin/Quote/Address/RateRequestPlugin.php @@ -0,0 +1,56 @@ + [ + 'limit_carrier', + 'tig', + ['limit_carrier','tig_postnl'] + ], + 'FlatRate Limit Carrier' => [ + 'limit_carrier', + 'flatrate', + ['limit_carrier','flatrate'] + ], + ]; + } + + /** + * @param $key + * @param $value + * @param $expected + * + * @dataProvider dataProvider + */ + public function testBeforeSetData($key, $value, $expected) + { + $instance = $this->getInstance(); + $result = $instance->beforeSetData(null, $key, $value); + + $this->assertEquals($expected, $result); + } +} \ No newline at end of file diff --git a/etc/config.xml b/etc/config.xml index 93ea1f3e3..64f2b619a 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -47,7 +47,7 @@ alpha - 2.1.5 + 2.1.5 - 2.1.9, 2.2.0 0 11223344 diff --git a/etc/di.xml b/etc/di.xml index 18f655bd9..075b8e3f6 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -47,6 +47,10 @@ + + + + postnl_logging diff --git a/etc/module.xml b/etc/module.xml index d9269d4cc..80c49eb3c 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -32,7 +32,7 @@ * --> - +