fix unit test
This commit is contained in:
@@ -42,14 +42,14 @@ class Wiass_REST_Delivery_Process_Api_Test extends Wiaas_Unit_Test_Case {
|
|||||||
|
|
||||||
$this->assertTrue(is_array($pending_step));
|
$this->assertTrue(is_array($pending_step));
|
||||||
|
|
||||||
$this->assertArrayHasKey('idOrder', $pending_step);
|
$this->assertArrayHasKey('order_id', $pending_step);
|
||||||
$this->assertArrayHasKey('orderNumber', $pending_step);
|
$this->assertArrayHasKey('order_number', $pending_step);
|
||||||
$this->assertArrayHasKey('status', $pending_step);
|
$this->assertArrayHasKey('status', $pending_step);
|
||||||
$this->assertArrayHasKey('stepAction', $pending_step);
|
$this->assertArrayHasKey('step_action', $pending_step);
|
||||||
|
|
||||||
$this->assertEquals($pending_step['idOrder'], $this->order_id);
|
$this->assertEquals($pending_step['order_id'], $this->order_id);
|
||||||
$this->assertEquals($pending_step['orderNumber'], $this->order_id);
|
$this->assertEquals($pending_step['order_number'], $this->order_id);
|
||||||
$this->assertEquals($pending_step['status'], 'pending');
|
$this->assertEquals($pending_step['status'], 'pending');
|
||||||
$this->assertNotEmpty($pending_step['stepAction']);
|
$this->assertNotEmpty($pending_step['step_action']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user