function it_applies_a_sort_on_in_group_products(ProductDatasource $datasource, ProductQueryBuilderInterface $pqb, $params)
 {
     $datasource->getProductQueryBuilder()->willReturn($pqb);
     $params->get('currentGroup', null)->willReturn(12);
     $pqb->addSorter('in_group_12', 'ASC')->shouldBeCalled();
     $this->apply($datasource, 'in_group', 'ASC');
 }
 function it_applies_a_sort_on_product_family(ProductDatasource $datasource, ProductQueryBuilderInterface $pqb)
 {
     $datasource->getProductQueryBuilder()->willReturn($pqb);
     $pqb->addSorter('family', 'ASC')->shouldBeCalled();
     $this->apply($datasource, 'family', 'ASC');
 }