Fix cosmetic and typo

This commit is contained in:
Dany De Bontridder 2020-04-04 16:15:18 +02:00
parent c12b3f14d1
commit 3eaa95387b
6 changed files with 7 additions and 8 deletions

View file

@ -87,7 +87,7 @@ class Acc_Ledger_Test extends TestCase
put_global(array(["key"=>"ac","value"=>"phpunit"]));
$ledger=new Acc_Ledger_Search('ALL');
$r=$ledger->display_search_form();
$this->assertEquals(9068,strlen($r),"Size of the html string for display_search_form");
$this->assertEquals(9066,strlen($r),"Size of the html string for display_search_form");
}
/**
* @covers ::build_search_filter

View file

@ -196,6 +196,7 @@ class Acc_Ledger_SoldTest extends TestCase
$object=new Acc_Ledger_Sold($g_connection, 2);
$info=$object->input($this->array);
// var_dump($info);
if (!is_string($info))
{
$this->assertTrue(FALSE);
@ -208,7 +209,7 @@ class Acc_Ledger_SoldTest extends TestCase
$this->assertContains(
'<INPUT TYPE="TEXT" class="input_text" id="e_pj" name="e_pj" value="VEN10" placeholder="" title=""',
$info);
$this->assertContains('ID="add_item" VALUE="Ajout article" onClick="ledger_add_row()">', $info);
$this->assertContains('ID="add_item" VALUE="ligne à ajouter" onClick="ledger_add_multiple', $info);
}