/** * Verifies that the default currency returns correctly */ public function test_currency_defaults() { $code = 'USD'; $name = 'US Dollars'; $symbol = '$'; $currency = APP_Currencies::get_current_currency(); $this->assertNotEmpty($currency); $this->assertEquals(compact('code', 'name', 'symbol'), $currency); $this->assertEquals($name, APP_Currencies::get_current_currency('name')); $this->assertEquals($symbol, APP_Currencies::get_current_currency('symbol')); $this->assertEquals($name, APP_Currencies::get_current_name()); $this->assertEquals($symbol, APP_Currencies::get_current_symbol()); }