protected function mockMeta() { $this->mappingDriver = m::mock(MappingDriver::class); $this->mappingDriver->shouldReceive('addPaths')->with($this->settings['paths']); $this->mockORMConfiguration(); $this->meta = m::mock(MetaDataManager::class); $this->meta->shouldReceive('driver')->once()->andReturn($this->mappingDriver); }
protected function mockMeta() { $this->mockORMConfiguration(); $this->meta = m::mock(MetaDataManager::class); $this->meta->shouldReceive('driver')->once()->andReturn($this->configuration); }