public function testFactoryExceptionWrongInterface() { $context = \TestHelper::getContext(); $aimeos = \TestHelper::getAimeos(); $this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception'); $object = \Aimeos\Controller\Jobs\Product\Import\Csv\Factory::createController($context, $aimeos, 'Factory'); }
public function testImport() { $aimeos = \TestHelper::getAimeos(); $cntl = \Aimeos\Controller\Jobs\Product\Import\Csv\Factory::createController($this->context, $aimeos, 'Standard'); $start = microtime(true); $cntl->run(); $stop = microtime(true); echo "\n product import CSV: " . ($stop - $start) . " sec\n"; }