function old_testAllowedCurrencies() { $origProduct_supported_currencies = Product::get_supported_currencies(); Product::set_supported_currencies(array('EUR', 'NZD')); $product = $this->objFromFixture('Product', 'p1a'); $this->assertEquals($product->Prices->Count(), 1); // Should exclude USD price from fixture $eurPrice = $product->Prices->First(); $this->assertEquals($eurPrice->Money->Currency, 'EUR'); Product::set_supported_currencies($origProduct_supported_currencies); }