getCustomOption() public method

Get path to fieldtype's custom
public getCustomOption ( string $fieldHandle ) : string
$fieldHandle string
return string
 /**
  * @covers ::getCustomOption
  */
 public function testGetCustomOptionShouldReturnOptionWhenFound()
 {
     $fieldHandle = 'handle';
     $option = array('optionkey' => 'optionvalue');
     $mockPluginsService = $this->getMock('Craft\\PluginsService');
     $mockPluginsService->expects($this->any())->method('call')->with('registerImportOptionPaths')->willReturn(array(array($fieldHandle => $option)));
     $this->setComponent(craft(), 'plugins', $mockPluginsService);
     $service = new ImportService();
     $result = $service->getCustomOption($fieldHandle);
     $this->assertSame($option, $result);
 }