/** * Returns the collection of option sets. * * @param array $filter * @return array */ public static function getOptionSets($filter = false) { $filter = BigCommerce_Api_Filter::create($filter); return self::getCollection('/optionsets' . $filter->toQuery(), 'OptionSet'); }
public function testFactoryWithMultipleParams() { $filter = BigCommerce_Api_Filter::create(array("one" => "1", "two" => "2")); $this->assertEquals("?one=1&two=2", $filter->toQuery()); }