Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@

### Added

- Added service `Services\Sale\BasketItem\Service\BasketItem` with support methods,
see [sale.basketitems.* methods](https://github.com/bitrix24/b24phpsdk/issues/243):
- `add` adds a new basket item, with batch calls support
- `update` updates a basket item, with batch calls support
- `get` returns a basket item by ID
- `list` returns a list of basket items, with batch calls support
- `delete` deletes a basket item, with batch calls support
- `getFields` returns the fields of a basket item
- Added service `Services\Sale\BasketProperty\Service\BasketProperty` with support methods,
see [sale.basketproperties.* methods](https://github.com/bitrix24/b24phpsdk/issues/243):
- `add` adds a basket property
- `update` updates the fields of a basket property
- `get` returns a basket property by ID
- `list` returns a list of basket properties
- `delete` deletes a basket property
- `getFields` returns the fields of basket properties
- Added service `Services\Sale\Order\Service\Order` with support methods,
see [sale.order.* methods](https://github.com/bitrix24/b24phpsdk/issues/241):
- `add` adds an order, with batch calls support
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ help:
@echo "lint-rector-fix - fix source code with rector"
@echo ""
@echo "test-unit - run unit tests"
@echo "test-integration-sale-basket-property - run BasketProperty integration tests"


.PHONY: docker-init
Expand Down Expand Up @@ -198,6 +199,14 @@ test-integration-sale-status:
.PHONY: test-integration-sale-status-lang
test-integration-sale-status-lang:
docker-compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_sale_status_lang

.PHONY: test-integration-sale-basket-property
test-integration-sale-basket-property:
docker-compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_sale_basket_property

.PHONY: test-integration-sale-basket
test-integration-sale-basket:
docker-compose run --rm php-cli vendor/bin/phpunit --testsuite integration_tests_sale_basket

.PHONY: test-integration-sale-order
test-integration-sale-order:
Expand Down
6 changes: 6 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
<testsuite name="integration_tests_sale_status_lang">
<directory>./tests/Integration/Services/Sale/StatusLang/</directory>
</testsuite>
<testsuite name="integration_tests_sale_basket">
<directory>./tests/Integration/Services/Sale/BasketItem/</directory>
</testsuite>
<testsuite name="integration_tests_sale_basket_property">
<directory>./tests/Integration/Services/Sale/BasketProperty/</directory>
</testsuite>
<testsuite name="integration_tests_scope_crm">
<directory>./tests/Integration/Services/CRM/</directory>
</testsuite>
Expand Down
Loading