Пример #1
0
 /**
  * Verify currencies added with arguments retain those values
  */
 public function test_input_arguments()
 {
     $code = strtoupper(__FUNCTION__);
     $name = 'Test Name 123';
     $symbol = '###';
     $display = '{price}{symbol}';
     APP_Currencies::add_currency($code, compact('name', 'symbol', 'display'));
     $this->assertEquals($name, APP_Currencies::get_name($code));
     $this->assertEquals($symbol, APP_Currencies::get_symbol($code));
     $currency_array = APP_Currencies::get_currency($code);
     $this->assertNotEmpty($currency_array);
     $this->assertEquals(compact('name', 'symbol', 'display', 'code'), $currency_array);
 }