protected function setUp() { $this->db = TestsHelpers::getDb(); $iniParams = TestsHelpers::getIniParams(); $this->okChannel = new OkChannel($iniParams->get("channelId"), $this->db); $this->dataProvider = new OkManufacturersDataProvider($this->db, $this->okChannel->getLanguageId()); }
public function setUp() { $this->db = TestsHelpers::getDb(); $this->db->setVerboseMode(); $this->iniParams = TestsHelpers::getIniParams(); $this->okChannel = new OkChannel($this->iniParams->get("channelId"), $this->db); }
protected function setUp() { $this->db = TestsHelpers::getDb(); $this->db->setVerboseMode(); $this->iniParams = TestsHelpers::getIniParams(); $this->okChannel = new OkChannel($this->iniParams->get("channelId"), $this->db); $this->dataProvider = new OkCategoriesDataProvider($this->db, $this->okChannel->getLanguageId()); }
protected function setUp() { $this->logger = LoggerFactory::getFileLogger(TestsHelpers::getUserLog(), Logger::INFO); $this->db = TestsHelpers::getDb(); $this->db->setVerboseMode(); $this->tableRow = new TableRow(TableRowTest::TABLE_NAME, $this->db, $this->logger); $this->deleteTestInserts(); }
protected function setUp() { $this->db = TestsHelpers::getDb(); $this->db->setVerboseMode(); $this->systemLogger = LoggerFactory::getFileLogger(TestsHelpers::getSystemLog(), Logger::INFO); TestsHelpers::cleanAllLogs(); $this->cleanTestRows(); }
protected function setUp() { $this->db = TestsHelpers::getDb(); $this->iniParams = TestsHelpers::getIniParams(); $systemLogger = LoggerFactory::getFileLogger(TestsHelpers::getSystemLog(), Logger::INFO); $this->connectorSet = new OkToBf($this->iniParams, $systemLogger); $this->connector = null; }
protected function setUp() { $this->db = TestsHelpers::getDb(); $this->db->setVerboseMode(); $this->iniParams = TestsHelpers::getIniParams(); $this->okChannel = new OkChannel($this->iniParams->get("channelId"), $this->db); $this->logger = LoggerFactory::getFileLogger(TestsHelpers::getUserLog(), Logger::WARNING); }
protected function setUp() { $this->db = TestsHelpers::getDb(); $iniParams = TestsHelpers::getIniParams(); $this->okChannel = new OkChannel($iniParams->get("channelId"), $this->db); $this->dataProvider = new OkOrdersStatusDataProvider($this->db, $this->okChannel->getCustomersId()); // we have to set the shipping date so the feed returns results $sql = "UPDATE shipping_orders SET shipping_date = NOW()"; $this->db->execute($sql, array()); }
protected function setUp() { TestsHelpers::cleanAllLogs(); $iniParams = TestsHelpers::getIniParams(); $this->idPrefix = $iniParams->get("idPrefix"); $this->bfVersion = $iniParams->get("bfVersion"); $this->logger = LoggerFactory::getFileLogger(TestsHelpers::getUserLog(), Logger::WARNING); $this->xmlItemMapper = new CategoryMapper($this->idPrefix, $this->bfVersion, $this->logger); $this->db = TestsHelpers::getDb(); $this->okChannel = new OkChannel($iniParams->get("channelId"), $this->db); }
protected function setUp() { $this->db = TestsHelpers::getDb(); //$this->db->setVerboseMode(); $this->logger = LoggerFactory::getFileLogger(TestsHelpers::getUserLog(), Logger::INFO); $this->iniParams = TestsHelpers::getIniParams(); $this->okChannel = new OkChannel($this->iniParams->get("channelId"), $this->db); $this->xmlImporter = new Orders($this->okChannel, $this->iniParams, $this->db, $this->logger); $bfOrderDataProvider = new BfOrderDataProvider(__DIR__ . '/Data/orders.xml'); $this->bfOrdersArray = $bfOrderDataProvider->getOrders(); $locale = $this->iniParams->get("locale"); I18n::setLocale($locale); self::deleteTestsOrders($this->iniParams, $this->db); }
protected function setUp() { TestsHelpers::cleanAllLogs(); $iniParams = TestsHelpers::getIniParams(); $this->idPrefix = $iniParams->get("idPrefix"); $this->bfVersion = $iniParams->get("bfVersion"); $this->orderShipCarrier = $iniParams->get("orderShipCarrier"); $this->orderShipMethod = $iniParams->get("orderShipMethod"); $this->logger = LoggerFactory::getFileLogger(TestsHelpers::getUserLog(), Logger::WARNING); $this->xmlItemMapper = new OrderStatusMapper($this->bfVersion, $this->orderShipCarrier, $this->orderShipMethod, $this->logger); $this->db = TestsHelpers::getDb(); $this->okChannel = new OkChannel($iniParams->get("channelId"), $this->db); // we have to set the shipping date so the feed returns results $sql = "UPDATE shipping_orders SET shipping_date = NOW()"; $this->db->execute($sql, array()); }
protected function setUp() { $this->db = TestsHelpers::getDb(); //$this->db->setVerboseMode(); $this->iniParams = TestsHelpers::getIniParams(); $this->idPrefix = $this->iniParams->get("idPrefix"); $this->okChannel = new OkChannel($this->iniParams->get("channelId"), $this->db); $this->logger = LoggerFactory::getFileLogger(TestsHelpers::getUserLog(), Logger::WARNING); TestsHelpers::cleanAllLogs(); $csvFile = new CsvFile(__DIR__ . "/Data/okProducts.csv", "\t"); $this->okProductsUpdatesArray = $csvFile->getAll(); array_splice($this->okProductsUpdatesArray, 10); $this->xmlExporter = new ProductsUpdates($this->iniParams, $this->okProductsUpdatesArray, $this->logger); $this->fileName = __DIR__ . "/Data/Exports/ProductsUpdates.xml"; if (file_exists($this->fileName)) { unlink($this->fileName); } }
protected function setUp() { $this->db = TestsHelpers::getDb(); $this->db->setVerboseMode(); $this->iniParams = TestsHelpers::getIniParams(); $this->bfVersion = $this->iniParams->get("bfVersion"); $this->okChannel = new OkChannel($this->iniParams->get("channelId"), $this->db); $this->logger = LoggerFactory::getFileLogger(TestsHelpers::getUserLog(), Logger::WARNING); TestsHelpers::cleanAllLogs(); $okOrdersStatusesDataProvider = new OkOrdersStatusDataProvider($this->db, $this->okChannel->getCustomersId()); $this->okOrdersStatusesArray = $okOrdersStatusesDataProvider->getAll(); $this->xmlExporter = new OrdersStatuses($this->iniParams, $this->okOrdersStatusesArray, $this->logger); $this->fileName = __DIR__ . "/Data/Exports/OrdersStatuses.xml"; if (file_exists($this->fileName)) { unlink($this->fileName); } // we have to set the shipping date so the feed returns results $sql = "UPDATE shipping_orders SET shipping_date = NOW()"; $this->db->execute($sql, array()); }
protected function setUp() { $this->db = TestsHelpers::getDb(); }
protected function setUp() { $db = TestsHelpers::getDb(); $this->dataProvider = new OkCategoriesDataProvider($db, 1); // 1 = français }