Example #1
0
 public function test_importVersion_1_7_0_success()
 {
     // ARRANGE
     $config = Registry::getConfig();
     $importDirectory = FS::joinPath($config->test->files->directory, 'test_imports', 'website_export_v_1_7_0_test');
     $importService = new ImportService();
     // ACT
     $importData = $importService->importFromDirectory(null, $importDirectory, null, null);
     // ASSERT
     $this->assertInternalType('array', $importData);
     $this->assertArrayHasKey('websiteId', $importData);
     $actualWebsite = $this->getWebsiteService()->getById($importData['websiteId']);
     $this->assertSame('the_repo_id', $actualWebsite->getUsedSetId());
 }