Giant: ajout test existence siret
This commit is contained in:
parent
08ca4f5728
commit
bd970d38a6
@ -59,6 +59,7 @@ TPRE = $(TDIR)/test-
|
|||||||
PHP_UI = php $(PWD)/update-investigation-tests.php
|
PHP_UI = php $(PWD)/update-investigation-tests.php
|
||||||
PHP_CD = php test-credit-data.php
|
PHP_CD = php test-credit-data.php
|
||||||
PHP_ME = php monitor-events.php
|
PHP_ME = php monitor-events.php
|
||||||
|
SIRET = 55214450300018
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
@ -102,10 +103,10 @@ test-suite:
|
|||||||
sed 's/$(SRC)/$(DST)/g' | \
|
sed 's/$(SRC)/$(DST)/g' | \
|
||||||
sed 's/$(TST)/$(DST)/g' | \
|
sed 's/$(TST)/$(DST)/g' | \
|
||||||
sed 's/$(SRV)\/credit-data\/v1/$(DST)\/credit-data\/v1\//g' | \
|
sed 's/$(SRV)\/credit-data\/v1/$(DST)\/credit-data\/v1\//g' | \
|
||||||
sed 's/0406952018/55214450300018/g' | \
|
sed 's/0406952018/$(SIRET)/g' | \
|
||||||
sed 's/533885/55214450300018/g' | \
|
sed 's/533885/$(SIRET)/g' | \
|
||||||
sed 's/0406952018/55214450300018/g' | \
|
sed 's/0406952018/$(SIRET)/g' | \
|
||||||
sed 's/<CompanyId>34/<CompanyId>55214450300018/g' | \
|
sed 's/<CompanyId>34/<CompanyId>$(SIRET)/g' | \
|
||||||
sed 's/<con:value>BE/<con:value>FR/g' | \
|
sed 's/<con:value>BE/<con:value>FR/g' | \
|
||||||
sed 's/<con:value>NL/<con:value>FR/g' | \
|
sed 's/<con:value>NL/<con:value>FR/g' | \
|
||||||
sed 's/<con:value>nl/<con:value>fr/g' | \
|
sed 's/<con:value>nl/<con:value>fr/g' | \
|
||||||
@ -163,7 +164,7 @@ tests: $(TESTS1) $(TESTS2) $(TESTS3) $(TESTS4)
|
|||||||
|
|
||||||
.PHONY: $(TESTS1)
|
.PHONY: $(TESTS1)
|
||||||
$(TESTS1):
|
$(TESTS1):
|
||||||
$(PHP_CD) CompanyId=55214450300018 action=$@ > $(TPRE)$@.txt
|
$(PHP_CD) CompanyId=$(SIRET) action=$@ > $(TPRE)$@.txt
|
||||||
|
|
||||||
.PHONY: $(TESTS2)
|
.PHONY: $(TESTS2)
|
||||||
$(TESTS2):
|
$(TESTS2):
|
||||||
|
@ -56,8 +56,8 @@ function modeTestUniquement()
|
|||||||
// Serveur
|
// Serveur
|
||||||
// --------------------------------------------------------------------------- //
|
// --------------------------------------------------------------------------- //
|
||||||
abstract class AccountItem { }
|
abstract class AccountItem { }
|
||||||
class AmountAccountItem extends AccountItem { }
|
class AmountAccountItem extends AccountItem { }
|
||||||
class NumberAccountItem extends AccountItem { }
|
class NumberAccountItem extends AccountItem { }
|
||||||
if (NDEBUG) {
|
if (NDEBUG) {
|
||||||
$serveur =
|
$serveur =
|
||||||
new SoapServer(SERVICES_URL.
|
new SoapServer(SERVICES_URL.
|
||||||
@ -978,6 +978,10 @@ function getDataSet($company_id, $data_set_type)
|
|||||||
if ($identite == false) {
|
if ($identite == false) {
|
||||||
throw technicalError(1, 'scoresws_identite');
|
throw technicalError(1, 'scoresws_identite');
|
||||||
}
|
}
|
||||||
|
if (empty($identite['Siret']) == true) {
|
||||||
|
throw functionalError(3000, $o->CompanyId);
|
||||||
|
}
|
||||||
|
|
||||||
$indiscore = scoresws_indiscore($company_id, $siren, 0);
|
$indiscore = scoresws_indiscore($company_id, $siren, 0);
|
||||||
if ($indiscore == false) {
|
if ($indiscore == false) {
|
||||||
throw technicalError(1, 'scoresws_indiscore');
|
throw technicalError(1, 'scoresws_indiscore');
|
||||||
|
@ -38,7 +38,7 @@ $gServiceHeader = new StdClass;
|
|||||||
$gServiceHeader->ConsumerId = 'a1234';
|
$gServiceHeader->ConsumerId = 'a1234';
|
||||||
//$gServiceHeader->CustomerId = 'a1234';
|
//$gServiceHeader->CustomerId = 'a1234';
|
||||||
$gServiceHeader->Provider = new StdClass;
|
$gServiceHeader->Provider = new StdClass;
|
||||||
$gServiceHeader->Provider->ProviderId = 'SD';
|
$gServiceHeader->Provider->ProviderId = 'SED';
|
||||||
$gServiceHeader->Provider->CountryCode = 'FR';
|
$gServiceHeader->Provider->CountryCode = 'FR';
|
||||||
$gServiceHeader->TimeStamp = date('Y-m-d\TH:i:s');
|
$gServiceHeader->TimeStamp = date('Y-m-d\TH:i:s');
|
||||||
$gServiceHeader->TestIndication = true;
|
$gServiceHeader->TestIndication = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user