1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

several fixes & improvements

This commit is contained in:
Pavel 2020-07-31 20:23:47 +03:00
parent 5339736e14
commit c7a06d9f60
4 changed files with 3 additions and 9 deletions

View file

@ -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

View file

@ -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",

View file

@ -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;
}

View file

@ -305,7 +305,7 @@ class User extends AbstractSerializableModel
/**
* @var DateTime
*
* // TODO: Replace $personalBirthday with \DateTime
* @Mapping\Type("DateTime")
* @Mapping\SerializedName("PERSONAL_BIRTHDAY")
* @Mapping\NoTransform()