Ejemplo n.º 1
0
 public function testSendImmediatelyOption()
 {
     $data = $this->validData();
     $data['oneClickProfiles'] = ['some', 'another'];
     $options = ['sendImmediately' => true];
     $this->view->expects($this->exactly(count($data['oneClickProfiles'])))->method('url')->with('lang/apply-one-click', $this->callback(function (array $variables) use($options) {
         return $variables['immediately'] === $options['sendImmediately'];
     }));
     $helper = $this->helper;
     $helper($data, $options);
 }