/** * @expectedException \RuntimeException */ public function testStoreException() { $type = $this->getMock('EMC\\TableBundle\\Table\\Type\\TableTypeInterface'); $data = array(array(1), array(2)); $options = array('x' => 3, 'y' => 'z'); $this->tableSession->store($type, $data, $options); }
public function onPreSetData(TablePreSetDataEvent $event) { $this->session->store($event->getTable()->getType(), $event->getData(), $event->getOptions()); }