This commit is contained in:
Pererinha 2016-11-02 17:25:20 -02:00
parent 5098fe5dcd
commit 33d73e32db
2 changed files with 5 additions and 6 deletions

View File

@ -3,7 +3,6 @@
class DatabaseTest extends PHPUnit_Framework_TestCase {
public function testDb() {
$c = c::db()->get('select * from config limit 1')->get(0);
// TODO: travis fix it
// $this->assertTrue($c->id_config ? true : false);
$this->assertTrue($c->id_config ? true : false);
}
}

View File

@ -109,9 +109,9 @@ class OrderTest extends PHPUnit_Framework_TestCase {
'phone' => $this->user->phone,
'name' => $this->user->name,
'cart' => [ [ 'id' => $this->id_dish1->id_dish ],
[ 'id' => $this->id_dish2->id_dish ],
[ 'id' => $this->id_dish3->id_dish ],
[ 'id' => $this->id_dish4->id_dish ] ],
[ 'id' => $this->id_dish2->id_dish ],
[ 'id' => $this->id_dish3->id_dish ],
[ 'id' => $this->id_dish4->id_dish ] ],
'pay_type' => 'cash',
'delivery_type' => 'delivery',
'restaurant' => $this->restaurant->id_restaurant,
@ -127,7 +127,7 @@ class OrderTest extends PHPUnit_Framework_TestCase {
$charge = $order->process($_POST);
$this->id_order = $order->id_order;
echo '<pre>';var_dump( $charge );
echo '<pre>';var_dump( $_POST, $charge );
$this->assertTrue($charge === true);
return $order;