several fixes & improvements
This commit is contained in:
parent
5339736e14
commit
c7a06d9f60
4 changed files with 3 additions and 9 deletions
|
@ -32,17 +32,12 @@ script: make test
|
|||
|
||||
jobs:
|
||||
include:
|
||||
- php: 7.0
|
||||
env: NOT_USE_VENDOR=1 BITRIX_EDITION=small_business_encode
|
||||
after_success: bash <(curl -s https://codecov.io/bash)
|
||||
- php: 7.1
|
||||
env: BITRIX_EDITION=small_business_encode
|
||||
- php: 7.2
|
||||
env: BITRIX_EDITION=small_business_encode
|
||||
- php: 7.3
|
||||
env: BITRIX_EDITION=small_business_encode
|
||||
- php: 7.0
|
||||
env: NOT_USE_VENDOR=1 BITRIX_EDITION=business_encode
|
||||
- php: 7.1
|
||||
env: BITRIX_EDITION=business_encode
|
||||
- php: 7.2
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
"name": "retailcrm/bitrix-module",
|
||||
"scripts": {
|
||||
"pre-module-install": "cp -R intaro.retailcrm $BITRIX_PATH/bitrix/modules",
|
||||
"tests": "php vendor/bin/phpunit -c phpunit.xml.dist --whitelist=$BITRIX_PATH/bitrix/modules/intaro.retailcrm",
|
||||
"tests7": "phpunit -c phpunit.xml.dist --whitelist=$BITRIX_PATH/bitrix/modules/intaro.retailcrm"
|
||||
"tests": "php vendor/bin/phpunit -c phpunit.xml.dist --whitelist=$BITRIX_PATH/bitrix/modules/intaro.retailcrm"
|
||||
},
|
||||
"description": "Integration module for Bitrix & RetailCRM",
|
||||
"type": "bitrix-module",
|
||||
|
|
|
@ -148,7 +148,7 @@ class CustomerBuilder implements BuilderInterface
|
|||
|
||||
$this->customer->externalId = $this->user->getId();
|
||||
$this->customer->email = $this->user->getEmail();
|
||||
$this->customer->createdAt = DateTimeConverter::bitrixToPhp($this->user->getDateRegister());
|
||||
$this->customer->createdAt = $this->user->getDateRegister();
|
||||
$this->customer->subscribed = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ class User extends AbstractSerializableModel
|
|||
|
||||
/**
|
||||
* @var DateTime
|
||||
*
|
||||
* // TODO: Replace $personalBirthday with \DateTime
|
||||
* @Mapping\Type("DateTime")
|
||||
* @Mapping\SerializedName("PERSONAL_BIRTHDAY")
|
||||
* @Mapping\NoTransform()
|
||||
|
|
Loading…
Add table
Reference in a new issue