travis fixed

This commit is contained in:
Daniel Camargo 2014-07-04 17:41:05 -03:00
parent 1a2317e993
commit ef908f7fed
3 changed files with 5 additions and 5 deletions

View File

@ -24,8 +24,4 @@ class Cockpit_Admin extends Crunchbutton_Admin {
return false;
}
public function payment_type(){
return Crunchbutton_Admin_Payment_Type::byAdmin( $this->id_admin );
}
}

View File

@ -17,6 +17,10 @@ class Crunchbutton_Admin extends Cana_Table {
];
}
public function payment_type(){
return Crunchbutton_Admin_Payment_Type::byAdmin( $this->id_admin );
}
public function validateLogin( $login, $increment = 0 ){
$test = $login . ( $increment > 0 ? $increment : '' );
$admin = Crunchbutton_Admin::login( $test, true );

View File

@ -49,7 +49,7 @@ class SettlementTest extends PHPUnit_Framework_TestCase {
}
public function testDriversMath() {
$calc = $this->settlement->driversProcessOrders( $this->driver_orders );
$calc = $this->settlement->driversProcess( $this->driver_orders );
$calc = $calc[ 0 ];
$this->assertEquals( $calc[ 'subtotal' ], 29.91 );
$this->assertEquals( $calc[ 'tax' ], 2.25 );