fix phone accessor in builder & fix incorrect path in the tests bootstrap
This commit is contained in:
parent
1c2f127050
commit
825b049ed5
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue