class RearrangeFilterTest
Same name and namespace in other branches
- 11.x core/modules/views_ui/tests/src/Unit/Form/Ajax/RearrangeFilterTest.php \Drupal\Tests\views_ui\Unit\Form\Ajax\RearrangeFilterTest
- 10 core/modules/views_ui/tests/src/Unit/Form/Ajax/RearrangeFilterTest.php \Drupal\Tests\views_ui\Unit\Form\Ajax\RearrangeFilterTest
- 8.9.x core/modules/views_ui/tests/src/Unit/Form/Ajax/RearrangeFilterTest.php \Drupal\Tests\views_ui\Unit\Form\Ajax\RearrangeFilterTest
Unit tests for Views UI module functions.
@group views_ui
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\views_ui\Unit\Form\Ajax\RearrangeFilterTest extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of RearrangeFilterTest
File
-
core/
modules/ views_ui/ tests/ src/ Unit/ Form/ Ajax/ RearrangeFilterTest.php, line 13
Namespace
Drupal\Tests\views_ui\Unit\Form\AjaxView source
class RearrangeFilterTest extends UnitTestCase {
/**
* Tests static methods.
*/
public function testStaticMethods() {
// Test the RearrangeFilter::arrayKeyPlus method.
$original = [
0 => 'one',
1 => 'two',
2 => 'three',
];
$expected = [
1 => 'one',
2 => 'two',
3 => 'three',
];
$this->assertSame(RearrangeFilter::arrayKeyPlus($original), $expected);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.