Tests RearrangeFilter's methods.
@group Views UI
Expanded class hierarchy of RearrangeFilterTest
class RearrangeFilterTest extends UnitTestCase {
public static function getInfo() {
return array(
'name' => 'Module tests',
'description' => 'Unit tests for Views UI module functions.',
'group' => 'Views UI',
);
}
/**
* Tests static methods.
*/
public function testStaticMethods() {
// Test the RearrangeFilter::arrayKeyPlus method.
$original = array(
0 => 'one',
1 => 'two',
2 => 'three',
);
$expected = array(
1 => 'one',
2 => 'two',
3 => 'three',
);
$this
->assertSame(RearrangeFilter::arrayKeyPlus($original), $expected);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RearrangeFilterTest:: |
public static | function |
This method exists to support the simpletest UI runner. Overrides UnitTestCase:: |
|
RearrangeFilterTest:: |
public | function | Tests static methods. | |
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed in array. | |
UnitTestCase:: |
public | function | Returns a stub config storage that returns the supplied configuration. | |
UnitTestCase:: |
public static | function | Generates a random string containing letters and numbers. |