function it_generates_a_query_to_update_product_families(FamilyTranslation $shirt) { $shirt->getId()->willReturn(12); $shirt->getLocale()->willReturn('fr_FR'); $this->generateQuery($shirt, 'label', 'sku', 'name')->shouldReturn([[['family' => 12], ['$set' => ['normalizedData.family.label.fr_FR' => 'name']], ['multiple' => true]]]); }
/** * {@inheritDoc} */ public function getLocale() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLocale', array()); return parent::getLocale(); }