getProductManager(); $group = $this->getGroupRepository()->get(TestReference::GROUP_1); $group2 = $this->getGroupRepository()->get(TestReference::GROUP_7); $user = $this->getUserRepository()->get(TestReference::PLACE_APES); $product = $this->getProductRepository()->get(TestReference::OBJECT_PLACE_6); $product->addGroup($group2); self::assertFalse($productManager->hasProductsOnlyInGroup($group, $user)); } }