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

fix phone accessor in builder & fix incorrect path in the tests bootstrap

This commit is contained in:
Pavel 2020-07-30 15:12:12 +03:00
parent 1c2f127050
commit 825b049ed5
2 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ class CustomerBuilder implements BuilderInterface
}
}
if (isset($phone['number'])) {
if (isset($phone->number)) {
if (strlen($this->user->getPersonalPhone()) == 0
&& $this->user->getPersonalPhone() != $phone->number
) {
@ -163,7 +163,7 @@ class CustomerBuilder implements BuilderInterface
if (strlen($this->user->getPersonalMobile()) == 0
&& $this->user->getPersonalMobile() != $phone->number
) {
$this->user->setPersonalMobile($phone['number']);
$this->user->setPersonalMobile($phone->number);
continue;
}
}

View file

@ -34,4 +34,4 @@ if (!IsModuleInstalled('intaro.retailcrm')) {
CModule::IncludeModule('intaro.retailcrm');
require_once __DIR__ . '/tests/helpers/Helpers.php';
require_once __DIR__ . '/helpers/Helpers.php';