/**
  * testGetModuleClassName
  *
  * @return void
  */
 public function testGetModuleClassName()
 {
     $register = $this->register;
     $register->shouldReceive('get')->andReturn(FakeMenuTypeClass::class);
     $moduleHandler = new ModuleHandler($register);
     $moduleClassName = $moduleHandler->getModuleClassName('module/xpressengine@test');
     $this->assertEquals(FakeMenuTypeClass::class, $moduleClassName);
 }
 /**
  * testGetModuleClassName
  *
  * @return void
  */
 public function testGetModuleClassName()
 {
     $module = m::mock('\\stdClass');
     $module->shouldReceive('getId')->andReturn('id');
     $module->shouldReceive('getComponentInfo')->with('name')->andReturn('title');
     $module->shouldReceive('getComponentInfo')->with('description')->andReturn('description');
     $module->shouldReceive('getComponentInfo')->with('screenshot')->andReturn('screenshot');
     $register = $this->register;
     $register->shouldReceive('get')->andReturn($module);
     $moduleHandler = new ModuleHandler($register);
     $moduleClassName = $moduleHandler->getModuleClassName('module/xpressengine@test');
     $this->assertEquals($module, $moduleClassName);
 }