Commit Graph

6 Commits

Author SHA1 Message Date
Rostislav Wolny
2c28449b58 Add helper method for comparing DateTimeInterface objects
This commit adds a method to the integration tester that allows
comparing two DateTimeInterface objects and specify tolerated delta.
It also allows passing null and assert the DateTimeInterface internally.
This is because often our entities have return type DateTimeInterface|null
So with the internal checks we don't have to make those instance of checks
each time we pass date from entity into the method.
Note: I was not able to use $this->assertInstanceOf because PHPStan was not accepting that
and still complained.
[MAILPOET-4723]
2022-11-07 10:10:17 +01:00
Rodrigo Primo
7de66934ca Add option to set billing_email when creating test Woo orders
[MAILPOET-4570]
2022-10-03 15:10:36 +02:00
Rodrigo Primo
6a06b81dca Add option to set date_created when creating test Woo orders
[MAILPOET-4570]
2022-10-03 15:10:36 +02:00
Rostislav Wolny
16ddb93d79 Refactor WooCommerce Segments test to use wc_create_order
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
John Oleksowicz
7c54fc800a Give integration tester ability to create orders
MAILPOET-4566
2022-09-08 13:02:52 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00