Remove test output verbosity

This commit is contained in:
Laurent Destailleur
2023-05-25 17:46:36 +02:00
parent 5124f8f84d
commit f76405d01a
2 changed files with 3 additions and 2 deletions

View File

@@ -782,7 +782,7 @@ class SecurityTest extends PHPUnit\Framework\TestCase
$url = 'https://www.dolibarr.fr'; // This is a redirect 301 page
$tmp = getURLContent($url, 'GET', '', 0); // We do NOT follow
print __METHOD__." url=".$url."\n";
$this->assertEquals(301, $tmp['http_code'], 'Should GET url 301 without a follow -> 301');
$this->assertEquals(301, $tmp['http_code'], 'Should GET url 301 response and stop here');
$url = 'https://www.dolibarr.fr'; // This is a redirect 301 page
$tmp = getURLContent($url); // We DO follow a page with return 300 so result should be 200