-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] WIP: Custom field implementation #53
base: main
Are you sure you want to change the base?
[Feat] WIP: Custom field implementation #53
Conversation
Lekker bezig! Wat mis je nog? (waarom het nog een draf is) |
Testen schrijven en wat code verplaatsen en bouwen. De code stond op de verkeerde plekken gezet 🤦♂️ |
Missen toch nog wat testen... |
// /** @test */ | ||
// public function show_order_custom_fields(): void | ||
// { | ||
// $client = (new OrderShowMockClient())->customFields(); | ||
// $service = new OrderService($client); | ||
|
||
// $order = $service->find(1); | ||
|
||
// static::assertSame(10., $order->customFields()[0]->amount()); | ||
// static::assertSame(CountryCode::NL, $order->taxes()[0]->rate()->country()); | ||
// static::assertSame(57, $order->taxes()[0]->rate()->id()); | ||
// static::assertSame(21., $order->taxes()[0]->rate()->percentage()); | ||
|
||
// $tax = $order->items()[0]->tax(); | ||
|
||
// static::assertSame(10., $tax->amount()); | ||
// static::assertSame(CountryCode::NL, $tax->rate()->country()); | ||
// static::assertSame(57, $tax->rate()->id()); | ||
// static::assertSame(21., $tax->rate()->percentage()); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- todo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Klopt :)
No description provided.