2
0
forked from Wavyzz/dolibarr

FIX Several pb in invoice remind (html detection, no event, transaction)

This commit is contained in:
Laurent Destailleur
2022-07-08 14:11:13 +02:00
parent 686f460f59
commit 245580bfa5
4 changed files with 91 additions and 12 deletions

View File

@@ -166,6 +166,7 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
print __METHOD__."\n";
}
/**
* testNum2Alpha
*
@@ -535,6 +536,10 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
$input='This is a text with html comments <!-- comment -->'; // we suppose this is not enough to be html content
$after=dol_textishtml($input);
$this->assertFalse($after);
$input="A text\nwith a link https://aaa?param=abc&amp;param2=def";
$after=dol_textishtml($input);
$this->assertFalse($after);
}