Craft\ImportServiceTest::testGetCustomOptionShouldReturnFalseWhenNoCustomOptionFound PHP Method

testGetCustomOptionShouldReturnFalseWhenNoCustomOptionFound() public method

    public function testGetCustomOptionShouldReturnFalseWhenNoCustomOptionFound()
    {
        $fieldHandle = 'handle';
        $mockPluginsService = $this->getMock('Craft\\PluginsService');
        $mockPluginsService->expects($this->any())->method('call')->with('registerImportOptionPaths')->willReturn(array());
        $this->setComponent(craft(), 'plugins', $mockPluginsService);
        $service = new ImportService();
        $result = $service->getCustomOption($fieldHandle);
        $this->assertFalse($result);
    }