summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/FormOptionsInitializationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/FormOptionsInitializationTest.php')
-rw-r--r--tests/phpunit/includes/FormOptionsInitializationTest.php33
1 files changed, 16 insertions, 17 deletions
diff --git a/tests/phpunit/includes/FormOptionsInitializationTest.php b/tests/phpunit/includes/FormOptionsInitializationTest.php
index d86c95d7..fb2304dc 100644
--- a/tests/phpunit/includes/FormOptionsInitializationTest.php
+++ b/tests/phpunit/includes/FormOptionsInitializationTest.php
@@ -41,45 +41,44 @@ class FormOptionsInitializationTest extends MediaWikiTestCase {
* with.
*/
protected function setUp() {
+ parent::setUp();
$this->object = new FormOptionsExposed();
-
}
public function testAddStringOption() {
- $this->object->add( 'foo', 'string value' );
+ $this->object->add( 'foo', 'string value' );
$this->assertEquals(
array(
'foo' => array(
- 'default' => 'string value',
+ 'default' => 'string value',
'consumed' => false,
- 'type' => FormOptions::STRING,
- 'value' => null,
- )
+ 'type' => FormOptions::STRING,
+ 'value' => null,
+ )
),
$this->object->getOptions()
);
}
public function testAddIntegers() {
- $this->object->add( 'one', 1 );
- $this->object->add( 'negone', -1 );
+ $this->object->add( 'one', 1 );
+ $this->object->add( 'negone', -1 );
$this->assertEquals(
array(
'negone' => array(
- 'default' => -1,
- 'value' => null,
+ 'default' => -1,
+ 'value' => null,
'consumed' => false,
- 'type' => FormOptions::INT,
- ),
+ 'type' => FormOptions::INT,
+ ),
'one' => array(
- 'default' => 1,
- 'value' => null,
+ 'default' => 1,
+ 'value' => null,
'consumed' => false,
- 'type' => FormOptions::INT,
- )
+ 'type' => FormOptions::INT,
+ )
),
$this->object->getOptions()
);
}
-
}