RearrangeFilterTest.php
Same filename in other branches
Namespace
Drupal\Tests\views_ui\Unit\Form\AjaxFile
-
core/
modules/ views_ui/ tests/ src/ Unit/ Form/ Ajax/ RearrangeFilterTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\views_ui\Unit\Form\Ajax;
use Drupal\Tests\UnitTestCase;
use Drupal\views_ui\Form\Ajax\RearrangeFilter;
/**
* Unit tests for Views UI module functions.
*
* @group views_ui
*/
class RearrangeFilterTest extends UnitTestCase {
/**
* Tests static methods.
*/
public function testStaticMethods() : void {
// 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);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
RearrangeFilterTest | Unit tests for Views UI module functions. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.