Skip to content

Commit 232b82d

Browse files
committed
Remove test case about saving numbers format.
1 parent ac58a16 commit 232b82d

File tree

4 files changed

+0
-300
lines changed

4 files changed

+0
-300
lines changed

test/Conversion/ConversionJsonTest.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -325,31 +325,6 @@ public function testConvertWorkbook_md()
325325
$this->assertTrue($resposne !==null );
326326
}
327327

328-
/// <summary>
329-
/// Test for get workbook as one of the available formats.
330-
/// </summary>
331-
332-
public function testConvertWorkbook_numbers()
333-
{
334-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
335-
$remoteFolder = "TestData/In";
336-
337-
$localName = "codegen-spec.json";
338-
$remoteName = "codegen-spec.json";
339-
340-
$format = "numbers";
341-
342-
$mapFiles = array ();
343-
$mapFiles[$localName] = CellsApiTestBase::getfullfilename($localName);
344-
CellsApiTestBase::ready( $instance,$localName ,$remoteFolder . "/" . $remoteName , "");
345-
346-
$request = new PutConvertWorkbookRequest();
347-
$request->setFile( $mapFiles);
348-
$request->setFormat( $format);
349-
350-
$resposne = $instance->putConvertWorkbook($request);
351-
$this->assertTrue($resposne !==null );
352-
}
353328

354329
/// <summary>
355330
/// Test for get workbook as one of the available formats.

test/Conversion/ConversionPngTest.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -273,31 +273,6 @@ public function testConvertWorkbook_md()
273273
$this->assertTrue($resposne !==null );
274274
}
275275

276-
/// <summary>
277-
/// Test for get workbook as one of the available formats.
278-
/// </summary>
279-
280-
public function testConvertWorkbook_numbers()
281-
{
282-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
283-
$remoteFolder = "TestData/In";
284-
285-
$localName = "cloud.png";
286-
$remoteName = "cloud.png";
287-
288-
$format = "numbers";
289-
290-
$mapFiles = array ();
291-
$mapFiles[$localName] = CellsApiTestBase::getfullfilename($localName);
292-
CellsApiTestBase::ready( $instance,$localName ,$remoteFolder . "/" . $remoteName , "");
293-
294-
$request = new PutConvertWorkbookRequest();
295-
$request->setFile( $mapFiles);
296-
$request->setFormat( $format);
297-
298-
$resposne = $instance->putConvertWorkbook($request);
299-
$this->assertTrue($resposne !==null );
300-
}
301276

302277
/// <summary>
303278
/// Test for get workbook as one of the available formats.

test/Conversion/ConversionTest.php

Lines changed: 0 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -389,34 +389,6 @@ public function testWorkbookSaveAs_md_OutResultPostExcelSaveAsmd()
389389
$this->assertTrue($resposne !==null );
390390
}
391391

392-
/// <summary>
393-
/// Test for save workbook as one of the available formats.
394-
/// </summary>
395-
396-
public function testWorkbookSaveAs_numbers_OutResultPostExcelSaveAsnumbers()
397-
{
398-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
399-
$remoteFolder = "TestData/In";
400-
401-
$localName = "Book1.xlsx";
402-
$remoteName = "Book1.xlsx";
403-
404-
$format = "numbers";
405-
$newfilename = "outResult/PostExcelSaveAs.numbers";
406-
407-
$saveOptions = new \Aspose\Cells\Cloud\Model\PdfSaveOptions();
408-
$saveOptions->setSaveFormat($format );
409-
CellsApiTestBase::ready( $instance,$localName ,$remoteFolder . "/" . $remoteName , "");
410-
411-
$request = new PostWorkbookSaveAsRequest();
412-
$request->setName( $remoteName);
413-
$request->setNewfilename( $newfilename);
414-
$request->setSaveOptions( $saveOptions);
415-
$request->setFolder( $remoteFolder);
416-
417-
$resposne = $instance->postWorkbookSaveAs($request);
418-
$this->assertTrue($resposne !==null );
419-
}
420392

421393
/// <summary>
422394
/// Test for save workbook as one of the available formats.
@@ -838,30 +810,7 @@ public function testGetWorkbookFormat_md()
838810
$this->assertTrue($resposne !==null );
839811
}
840812

841-
/// <summary>
842-
/// Test for get workbook as one of the available formats.
843-
/// </summary>
844-
845-
public function testGetWorkbookFormat_numbers()
846-
{
847-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
848-
$remoteFolder = "TestData/In";
849-
850-
$localName = "Book1.xlsx";
851-
$remoteName = "Book1.xlsx";
852813

853-
$format = "numbers";
854-
855-
CellsApiTestBase::ready( $instance,$localName ,$remoteFolder . "/" . $remoteName , "");
856-
857-
$request = new GetWorkbookRequest();
858-
$request->setName( $remoteName);
859-
$request->setFormat( $format);
860-
$request->setFolder( $remoteFolder);
861-
862-
$resposne = $instance->getWorkbook($request);
863-
$this->assertTrue($resposne !==null );
864-
}
865814

866815
/// <summary>
867816
/// Test for get workbook as one of the available formats.
@@ -1326,31 +1275,6 @@ public function testConvertWorkbook_md()
13261275
$this->assertTrue($resposne !==null );
13271276
}
13281277

1329-
/// <summary>
1330-
/// Test for get workbook as one of the available formats.
1331-
/// </summary>
1332-
1333-
public function testConvertWorkbook_numbers()
1334-
{
1335-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
1336-
$remoteFolder = "TestData/In";
1337-
1338-
$localName = "Book1.xlsx";
1339-
$remoteName = "Book1.xlsx";
1340-
1341-
$format = "numbers";
1342-
1343-
$mapFiles = array ();
1344-
$mapFiles[$localName] = CellsApiTestBase::getfullfilename($localName);
1345-
CellsApiTestBase::ready( $instance,$localName ,$remoteFolder . "/" . $remoteName , "");
1346-
1347-
$request = new PutConvertWorkbookRequest();
1348-
$request->setFile( $mapFiles);
1349-
$request->setFormat( $format);
1350-
1351-
$resposne = $instance->putConvertWorkbook($request);
1352-
$this->assertTrue($resposne !==null );
1353-
}
13541278

13551279
/// <summary>
13561280
/// Test for get workbook as one of the available formats.
@@ -1900,33 +1824,6 @@ public function testConvertWorkbookSaveCloud_md_OutResultConvertWorkbookmd()
19001824
$this->assertTrue($resposne !==null );
19011825
}
19021826

1903-
/// <summary>
1904-
/// Test for converting workbook to one of the available formats.
1905-
/// </summary>
1906-
1907-
public function testConvertWorkbookSaveCloud_numbers_OutResultConvertWorkbooknumbers()
1908-
{
1909-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
1910-
$remoteFolder = "TestData/In";
1911-
1912-
$localName = "Book1.xlsx";
1913-
$remoteName = "Book1.xlsx";
1914-
1915-
$format = "numbers";
1916-
$outPath = "outResult/ConvertWorkbook.numbers";
1917-
1918-
$mapFiles = array ();
1919-
$mapFiles[$localName] = CellsApiTestBase::getfullfilename($localName);
1920-
CellsApiTestBase::ready( $instance,$localName ,$remoteFolder . "/" . $remoteName , "");
1921-
1922-
$request = new PutConvertWorkbookRequest();
1923-
$request->setFile( $mapFiles);
1924-
$request->setFormat( $format);
1925-
$request->setOutPath( $outPath);
1926-
1927-
$resposne = $instance->putConvertWorkbook($request);
1928-
$this->assertTrue($resposne !==null );
1929-
}
19301827

19311828
/// <summary>
19321829
/// Test for converting workbook to one of the available formats.

test/Document/LightCellsTest.php

Lines changed: 0 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -414,29 +414,6 @@ public function testPostSplit_md()
414414
$this->assertTrue($resposne !==null );
415415
}
416416

417-
/// <summary>
418-
/// Test for save workbook as one of the available formats.
419-
/// </summary>
420-
421-
public function testPostSplit_numbers()
422-
{
423-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
424-
$assemblyTestXlsx = "assemblytest.xlsx";
425-
$dataSourceXlsx = "datasource.xlsx";
426-
427-
$outFormat = "numbers";
428-
429-
$mapFiles = array ();
430-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
431-
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
432-
433-
$request = new PostSplitRequest();
434-
$request->setFile( $mapFiles);
435-
$request->setOutFormat( $outFormat);
436-
437-
$resposne = $instance->postSplit($request);
438-
$this->assertTrue($resposne !==null );
439-
}
440417

441418
/// <summary>
442419
/// Test for save workbook as one of the available formats.
@@ -1083,30 +1060,6 @@ public function testPostAssemble_md()
10831060
$this->assertTrue($resposne !==null );
10841061
}
10851062

1086-
/// <summary>
1087-
/// Test for save workbook as one of the available formats.
1088-
/// </summary>
1089-
1090-
public function testPostAssemble_numbers()
1091-
{
1092-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
1093-
$assemblyTestXlsx = "assemblytest.xlsx";
1094-
$dataSourceXlsx = "datasource.xlsx";
1095-
1096-
$format = "numbers";
1097-
1098-
$mapFiles = array ();
1099-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
1100-
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
1101-
1102-
$request = new PostAssembleRequest();
1103-
$request->setFile( $mapFiles);
1104-
$request->setDatasource( "ds");
1105-
$request->setOutFormat( $format);
1106-
1107-
$resposne = $instance->postAssemble($request);
1108-
$this->assertTrue($resposne !==null );
1109-
}
11101063

11111064
/// <summary>
11121065
/// Test for save workbook as one of the available formats.
@@ -1804,31 +1757,7 @@ public function testPostExport_md_workbook()
18041757
$this->assertTrue($resposne !==null );
18051758
}
18061759

1807-
/// <summary>
1808-
/// Test for save workbook as one of the available formats.
1809-
/// </summary>
1810-
1811-
public function testPostExport_numbers_workbook()
1812-
{
1813-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
1814-
$assemblyTestXlsx = "assemblytest.xlsx";
1815-
$book1Xlsx = "Book1.xlsx";
1816-
1817-
$format = "numbers";
1818-
$objectType = "workbook";
18191760

1820-
$mapFiles = array ();
1821-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
1822-
$mapFiles[$book1Xlsx] = CellsApiTestBase::getfullfilename($book1Xlsx);
1823-
1824-
$request = new PostExportRequest();
1825-
$request->setFile( $mapFiles);
1826-
$request->setObjectType( $objectType);
1827-
$request->setFormat( $format);
1828-
1829-
$resposne = $instance->postExport($request);
1830-
$this->assertTrue($resposne !==null );
1831-
}
18321761

18331762
/// <summary>
18341763
/// Test for save workbook as one of the available formats.
@@ -2536,32 +2465,6 @@ public function testPostExport_md_worksheet()
25362465
/// Test for save workbook as one of the available formats.
25372466
/// </summary>
25382467

2539-
public function testPostExport_numbers_worksheet()
2540-
{
2541-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
2542-
$assemblyTestXlsx = "assemblytest.xlsx";
2543-
$book1Xlsx = "Book1.xlsx";
2544-
2545-
$format = "numbers";
2546-
$objectType = "worksheet";
2547-
2548-
$mapFiles = array ();
2549-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
2550-
$mapFiles[$book1Xlsx] = CellsApiTestBase::getfullfilename($book1Xlsx);
2551-
2552-
$request = new PostExportRequest();
2553-
$request->setFile( $mapFiles);
2554-
$request->setObjectType( $objectType);
2555-
$request->setFormat( $format);
2556-
2557-
$resposne = $instance->postExport($request);
2558-
$this->assertTrue($resposne !==null );
2559-
}
2560-
2561-
/// <summary>
2562-
/// Test for save workbook as one of the available formats.
2563-
/// </summary>
2564-
25652468
public function testPostExport_wmf_worksheet()
25662469
{
25672470
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
@@ -3572,31 +3475,6 @@ public function testPostExport_md_listobject()
35723475
$this->assertTrue($resposne !==null );
35733476
}
35743477

3575-
/// <summary>
3576-
/// Test for save workbook as one of the available formats.
3577-
/// </summary>
3578-
3579-
public function testPostExport_numbers_listobject()
3580-
{
3581-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
3582-
$assemblyTestXlsx = "assemblytest.xlsx";
3583-
$book1Xlsx = "Book1.xlsx";
3584-
3585-
$format = "numbers";
3586-
$objectType = "listobject";
3587-
3588-
$mapFiles = array ();
3589-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
3590-
$mapFiles[$book1Xlsx] = CellsApiTestBase::getfullfilename($book1Xlsx);
3591-
3592-
$request = new PostExportRequest();
3593-
$request->setFile( $mapFiles);
3594-
$request->setObjectType( $objectType);
3595-
$request->setFormat( $format);
3596-
3597-
$resposne = $instance->postExport($request);
3598-
$this->assertTrue($resposne !==null );
3599-
}
36003478

36013479
/// <summary>
36023480
/// Test for save workbook as one of the available formats.
@@ -4478,31 +4356,6 @@ public function testPostMerge_md_true()
44784356
$this->assertTrue($resposne !==null );
44794357
}
44804358

4481-
/// <summary>
4482-
/// Test for save workbook as one of the available formats.
4483-
/// </summary>
4484-
4485-
public function testPostMerge_numbers_true()
4486-
{
4487-
$instance = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
4488-
$assemblyTestXlsx = "assemblytest.xlsx";
4489-
$dataSourceXlsx = "datasource.xlsx";
4490-
4491-
$format = "numbers";
4492-
$mergeToOneSheet = 'true';
4493-
4494-
$mapFiles = array ();
4495-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
4496-
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
4497-
4498-
$request = new PostMergeRequest();
4499-
$request->setFile( $mapFiles);
4500-
$request->setOutFormat( $format);
4501-
$request->setMergeToOneSheet( $mergeToOneSheet);
4502-
4503-
$resposne = $instance->postMerge($request);
4504-
$this->assertTrue($resposne !==null );
4505-
}
45064359

45074360
/// <summary>
45084361
/// Test for save workbook as one of the available formats.

0 commit comments

Comments
 (0)