public function setEntity($entity, $key = '*') { if ('*' == $key) { $this->setParam('cv', $entity->getId()); } return parent::setEntity($entity, $key); }
/** * @dataProvider provideEntities */ public function testSetGetEntity($input, $key, $expected) { $this->target->setEntity($input, $key, $expected); $this->assertEquals($expected, $this->target->getEntity($key)); }