Improve Test and set the Patch level to 181

This commit is contained in:
sparkyx 2022-11-20 21:23:36 +01:00
parent 0a37212d2a
commit 6bd4f72178
5 changed files with 38 additions and 15 deletions

View file

@ -198,4 +198,26 @@ class Fiche_DefTest extends Testcase
$fiche_def->RemoveAttribut([20, 21, 22, 51, 52, 53]);
}
/**
@testdox get a Fiche_Def
*/
function testGet()
{
global $g_connection;
$fiche_def=$this->getFicheDef();
$fiche_def->get();
$this->assertTrue($fiche_def->label=='Test.card',"Can not retrieve label");
}
/**
@testdox get all Fiche_Def
*/
function testGetAll()
{
global $g_connection;
$fiche_def=$this->getFicheDef();
$all=$fiche_def->get_all();
$this->assertEquals(count($all) , 8 ,"Retrieve an wrong number of Fiche_Def");
}
}

View file

@ -180,7 +180,7 @@ class ContactTest extends TestCase
$filename="contact-summary-1.html";
\Noalyss\Facility::save_file($path,$filename,$r);
print "File saved into $path/$filename";
$this->assertEquals(4988, filesize ($path."/".$filename)," File not valide (1)");
$this->assertEquals(4988, filesize ($path."/".$filename)," File not valide (1) $filename");
$this->assertEquals(5 , preg_match_all('/<tr class="/',$r)," 1. Missing card");
$contact->filter_company(' fourni ');
ob_start();

View file

@ -1,4 +1,4 @@
2<?php
<?php
use PHPUnit\Framework\TestCase;