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);
 }
 public function test_can_register_paths()
 {
     $this->disableDebugbar();
     $this->disableSecondLevelCaching();
     $this->disableCustomCacheNamespace();
     $this->disableCustomFunctions();
     $this->enableLaravelNamingStrategy();
     $this->mappingDriver->shouldReceive('addPaths')->once()->with($this->settings['paths']);
     $manager = $this->factory->create($this->settings);
     $this->assertEntityManager($manager);
 }