コード例 #1
0
 function testShouldFilterCalloutByServiceCode()
 {
     $product = $this->newProduct(1);
     $product = new Elite_Vafdiagram_Model_Catalog_Product($product);
     $product->addServiceCode(123, array('category1' => 1, 'callout' => 1));
     $product->addServiceCode(345, array('category1' => 1, 'callout' => 2));
     $actual = $product->callout(array('service_code' => 345, 'category1' => 1));
     $this->assertEquals(2, $actual, 'should associate calloutwith service code');
 }