Commit fe9592e3 authored by Carsten  Rose's avatar Carsten Rose
Browse files

DeleteTest.php: Unittest adjusted to run on CI

parent 0b265a8e
......@@ -19,7 +19,7 @@ class DeleteTest extends \AbstractDatabaseTest {
public function testProcessException() {
$msg = array();
$delete = new Delete();
$delete = new Delete(true);
// empty 'form' not allowed
$delete->process(array(), 123, $msg);
......@@ -31,7 +31,7 @@ class DeleteTest extends \AbstractDatabaseTest {
public function testProcessException1() {
$msg = array();
$delete = new Delete();
$delete = new Delete(true);
// 'form' with empty tablename not allowed
$form[F_TABLE_NAME] = '';
......@@ -44,7 +44,7 @@ class DeleteTest extends \AbstractDatabaseTest {
public function testProcessException2() {
$msg = array();
$delete = new Delete();
$delete = new Delete(true);
// empty record id not allowed
$form[F_TABLE_NAME] = 'Person';
......@@ -57,7 +57,7 @@ class DeleteTest extends \AbstractDatabaseTest {
public function testProcessException3() {
$msg = array();
$delete = new Delete();
$delete = new Delete(true);
$form[F_TABLE_NAME] = 'Person';
// record id = 0 not allowed
......@@ -70,7 +70,7 @@ class DeleteTest extends \AbstractDatabaseTest {
public function testProcessException4() {
$msg = array();
$delete = new Delete();
$delete = new Delete(true);
// unknown table not allowed
$form[F_TABLE_NAME] = 'UnknownTable';
......@@ -82,7 +82,7 @@ class DeleteTest extends \AbstractDatabaseTest {
public function testProcessRecordNotFound() {
$msg = array();
$delete = new Delete();
$delete = new Delete(true);
// unknown table not allowed
$form[F_TABLE_NAME] = 'Person';
......@@ -99,7 +99,7 @@ class DeleteTest extends \AbstractDatabaseTest {
public function testProcess() {
$msg = array();
$delete = new Delete();
$delete = new Delete(true);
// unknown table not allowed
$form[F_TABLE_NAME] = 'Person';
......@@ -121,6 +121,7 @@ class DeleteTest extends \AbstractDatabaseTest {
parent::setUp();
$this->store->setVar('form', 'TestFormName', STORE_TYPO3);
$this->store->setVar(SYSTEM_SITE_PATH, '/tmp', STORE_SYSTEM, true);
$this->executeSQLFile(__DIR__ . '/fixtures/Generic.sql', true);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment