From 7dbc83e21feeee17b41a9a78ce5e281ee64d88cc Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 9 Sep 2014 11:58:07 +0200 Subject: [PATCH] Drop obsolete BaseBackendFormTest refs #5525 --- .../Authentication/BaseBackendFormTest.php | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 test/php/application/forms/Config/Authentication/BaseBackendFormTest.php diff --git a/test/php/application/forms/Config/Authentication/BaseBackendFormTest.php b/test/php/application/forms/Config/Authentication/BaseBackendFormTest.php deleted file mode 100644 index ca32a1dae..000000000 --- a/test/php/application/forms/Config/Authentication/BaseBackendFormTest.php +++ /dev/null @@ -1,61 +0,0 @@ -is_valid; - } -} - -class BaseBackendFormTest extends BaseTestCase -{ - public function testIsForceCreationCheckboxBeingAdded() - { - $form = new BackendForm(); - $form->is_valid = false; - - $this->assertFalse($form->isValid(array())); - $this->assertNotNull( - $form->getElement('backend_force_creation'), - 'Checkbox to force a backend\'s creation is not being added though the backend is invalid' - ); - } - - public function testIsForceCreationCheckboxNotBeingAdded() - { - $form = new BackendForm(); - $form->is_valid = true; - - $this->assertTrue($form->isValid(array())); - $this->assertNull( - $form->getElement('backend_force_creation'), - 'Checkbox to force a backend\'s creation is being added though the backend is valid' - ); - } - - public function testIsTheFormValidIfForceCreationTrue() - { - $form = new BackendForm(); - $form->is_valid = false; - - $this->assertTrue( - $form->isValid(array('backend_force_creation' => 1)), - 'BaseBackendForm with invalid backend is not valid though force creation is set' - ); - } -}