コード例 #1
0
 function it_counts_complete_products_per_channels(Cursor $cursor)
 {
     $countList = array(0, 1, 2);
     $cursor->count()->will(function () use(&$countList) {
         return array_shift($countList);
     });
     $this->getCompleteProductsCountPerChannels()->shouldReturn(array(array('locale' => 'en_US', 'label' => 'ECommerce', 'total' => 0), array('locale' => 'fr_FR', 'label' => 'ECommerce', 'total' => 1), array('locale' => 'en_US', 'label' => 'Mobile', 'total' => 2)));
 }