public function setUp() { $this->configData = array('ownerModel' => 'fairy', 'itemModel' => 'flower', 'path' => 'favorites.' . $this->configOwnerProperty, $this->ownerPropertyName => $this->configOwnerProperty); $this->propertyConfig = $this->config($this->configData); parent::setUp(); $this->documentPlanner = $this->getPlanner('document'); $this->method($this->planners, 'document', $this->documentPlanner, array()); }
public function setUp() { $this->configData = array('ownerModel' => 'fairy', 'itemModel' => 'flower', 'ownerKey' => 'fairyId', 'itemOwnerProperty' => 'fairy', $this->ownerPropertyName => $this->configOwnerProperty); $this->plannerMocks['in'] = $this->getPlanner('in'); $this->plannerMocks['update'] = $this->getPlanner('update'); $this->propertyConfig = $this->config($this->configData); parent::setUp(); foreach ($this->plannerMocks as $name => $planner) { $this->method($this->planners, $name, $planner, array()); } }