mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-10 17:27:58 +01:00
Apply fixeds rector.
This commit is contained in:
@@ -21,7 +21,7 @@ class ArrayDataProviderTest extends TestCase
|
||||
$this->mockApplication();
|
||||
}
|
||||
|
||||
public function testGetModels()
|
||||
public function testGetModels(): void
|
||||
{
|
||||
$simpleArray = [
|
||||
['name' => 'zero'],
|
||||
@@ -31,7 +31,7 @@ class ArrayDataProviderTest extends TestCase
|
||||
$this->assertEquals($simpleArray, $dataProvider->getModels());
|
||||
}
|
||||
|
||||
public function testGetSortedData()
|
||||
public function testGetSortedData(): void
|
||||
{
|
||||
$simpleArray = [['sortField' => 1], ['sortField' => 0]];
|
||||
$dataProvider = new ArrayDataProvider(
|
||||
@@ -56,7 +56,7 @@ class ArrayDataProviderTest extends TestCase
|
||||
$this->assertEquals($sortedArray, $dataProvider->getModels());
|
||||
}
|
||||
|
||||
public function testGetSortedDataByInnerArrayField()
|
||||
public function testGetSortedDataByInnerArrayField(): void
|
||||
{
|
||||
$simpleArray = [
|
||||
['innerArray' => ['sortField' => 1]],
|
||||
@@ -87,7 +87,7 @@ class ArrayDataProviderTest extends TestCase
|
||||
$this->assertEquals($sortedArray, $dataProvider->getModels());
|
||||
}
|
||||
|
||||
public function testCaseSensitiveSort()
|
||||
public function testCaseSensitiveSort(): void
|
||||
{
|
||||
// source data
|
||||
$unsortedProjects = [
|
||||
@@ -156,7 +156,7 @@ class ArrayDataProviderTest extends TestCase
|
||||
$this->assertEquals($sortedProjects, $dataProvider->getModels());
|
||||
}
|
||||
|
||||
public function testGetKeys()
|
||||
public function testGetKeys(): void
|
||||
{
|
||||
$pagination = ['pageSize' => 2];
|
||||
|
||||
@@ -185,7 +185,7 @@ class ArrayDataProviderTest extends TestCase
|
||||
$this->assertEquals(['key1', 9], $dataProvider->getKeys());
|
||||
}
|
||||
|
||||
public function testSortFlags()
|
||||
public function testSortFlags(): void
|
||||
{
|
||||
$simpleArray = [['sortField' => 1], ['sortField' => 2], ['sortField' => 11]];
|
||||
$dataProvider = new ArrayDataProvider(
|
||||
|
||||
Reference in New Issue
Block a user