Skip to content

Commit

Permalink
Fix php unit to work both with old and new setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 2, 2016
1 parent 1d9acd6 commit a67f52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/phpunit/FunctionsLibTest.php
Expand Up @@ -853,8 +853,8 @@ public function testGetDefaultLocalTax()
// Test RULE ES-ES
$vat1=get_default_localtax($companyes,$companyes,1,0);
$vat2=get_default_localtax($companyes,$companyes,2,0);
$this->assertEquals(5.2,$vat1);
$this->assertEquals(-19,$vat2);
$this->assertEquals($vat1, 5.2);
$this->assertStringStartsWith((string) $vat2, '-19:-15:-9'); // Can be -19 (old version) or '-19:-15:-9' (new setup)

// Test RULE ES-IT
$vat1=get_default_localtax($companyes,$companyit,1,0);
Expand Down

0 comments on commit a67f52e

Please sign in to comment.