Commit 93ab1162 authored by Karamel's avatar Karamel
Browse files

Fix product tests.

parent b44d3a0a
......@@ -299,7 +299,7 @@ class ProductAPITest extends TestCase
$this->dao->commit();
$grpPrd = new CompositionProduct();
$grpPrd->setProduct($prd2);
$grp->addCompositionProducts($grpPrd);
$grp->addCompositionProduct($grpPrd);
$this->dao->write($prd);
$this->dao->commit();
$struct = $prd->toStruct();
......
......@@ -128,7 +128,6 @@ class HttpProductTest extends TestCase
unset($struct['id']);
unset($struct['compositionGroups'][0]['id']);
unset($struct['compositionGroups'][0]['compositionProducts'][0]['id']);
var_dump($struct);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_URL,
apiUrl(sprintf('api/product/%s', urlencode($compo->getReference()))));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment