PMCORE-3877

This commit is contained in:
Paula.Quispe
2022-06-09 11:43:56 -04:00
committed by Mauricio Veliz
parent d0c5a23d67
commit 3f6f6c5a30
98 changed files with 202 additions and 220 deletions

View File

@@ -37,7 +37,7 @@ class PmTablesProxyTest extends TestCase
/**
* It setup the variables for the unit tests
*/
protected function setUp()
public function setUp(): void
{
parent::setUp();
@@ -52,6 +52,27 @@ class PmTablesProxyTest extends TestCase
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
}
/**
* Delete all the PM Tables created for the test
*/
public function tearDown(): void
{
parent::tearDown();
$obj = new pmTablesProxy();
$httpDataBigInt = (object)['rows' => '[{"id":"' . $this->repTableBigIntUid . '","type":""}]'];
$httpDataChar = (object)['rows' => '[{"id":"' . $this->repTableCharUid . '","type":""}]'];
$httpDataSmallInt = (object)['rows' => '[{"id":"' . $this->repTableSmallIntUid . '","type":""}]'];
$httpDataInteger = (object)['rows' => '[{"id":"' . $this->repTableIntegerUid . '","type":""}]'];
$httpDataVarChar = (object)['rows' => '[{"id":"' . $this->repTableVarCharUid . '","type":""}]'];
$httpDataTinyInt = (object)['rows' => '[{"id":"' . $this->repTableTinyIntUid . '","type":""}]'];
$obj->delete($httpDataBigInt);
$obj->delete($httpDataChar);
$obj->delete($httpDataSmallInt);
$obj->delete($httpDataInteger);
$obj->delete($httpDataVarChar);
$obj->delete($httpDataTinyInt);
}
/**
* It tests the PM Table with a bigInt ID
*
@@ -1067,27 +1088,6 @@ class PmTablesProxyTest extends TestCase
//This method deletes a specific row of a PM table
$obj->dataDestroy($httpDataDestroyTest);
}
/**
* Delete all the PM Tables created for the test
*/
public function tearDown()
{
parent::tearDown();
$obj = new pmTablesProxy();
$httpDataBigInt = (object)['rows' => '[{"id":"' . $this->repTableBigIntUid . '","type":""}]'];
$httpDataChar = (object)['rows' => '[{"id":"' . $this->repTableCharUid . '","type":""}]'];
$httpDataSmallInt = (object)['rows' => '[{"id":"' . $this->repTableSmallIntUid . '","type":""}]'];
$httpDataInteger = (object)['rows' => '[{"id":"' . $this->repTableIntegerUid . '","type":""}]'];
$httpDataVarChar = (object)['rows' => '[{"id":"' . $this->repTableVarCharUid . '","type":""}]'];
$httpDataTinyInt = (object)['rows' => '[{"id":"' . $this->repTableTinyIntUid . '","type":""}]'];
$obj->delete($httpDataBigInt);
$obj->delete($httpDataChar);
$obj->delete($httpDataSmallInt);
$obj->delete($httpDataInteger);
$obj->delete($httpDataVarChar);
$obj->delete($httpDataTinyInt);
}
/**
* This test verifies the import of pmtable with post form error catching.