mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
add test for AddressReferenceBaseImporter
This commit is contained in:
@@ -73,7 +73,7 @@ final class AddressReferenceBaseImporter
|
||||
|
||||
public function importAddress(
|
||||
string $refAddress,
|
||||
string $refPostalCode,
|
||||
?string $refPostalCode,
|
||||
string $postalCode,
|
||||
string $street,
|
||||
string $streetNumber,
|
||||
@@ -157,7 +157,11 @@ final class AddressReferenceBaseImporter
|
||||
$statement = $this->cachingStatements[$forNumber];
|
||||
|
||||
try {
|
||||
$statement->executeStatement(array_merge(...$this->waitingForInsert));
|
||||
$affected = $statement->executeStatement(array_merge(...$this->waitingForInsert));
|
||||
|
||||
if ($affected === 0) {
|
||||
throw new \RuntimeException('no row affected');
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
// in some case, we can add debug code here
|
||||
//dump($this->waitingForInsert);
|
||||
|
Reference in New Issue
Block a user