/** * Verifies that calling update_currency on an existing currency succeeds */ public function test_update_currency() { $code = strtoupper(__FUNCTION__); $status = APP_Currencies::add_currency($code, array()); $this->assertTrue($status); $currency_args = array('name' => 'Updated', 'symbol' => 'UUU', 'display' => '{updated}', 'code' => $code); APP_Currencies::update_currency($code, $currency_args); $this->assertEquals(APP_Currencies::get_currency($code), $currency_args); }