diff options
Diffstat (limited to 'tests/app/Models/CategoryTest.php')
| -rw-r--r-- | tests/app/Models/CategoryTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/app/Models/CategoryTest.php b/tests/app/Models/CategoryTest.php index 842ebe200..c9e88a32d 100644 --- a/tests/app/Models/CategoryTest.php +++ b/tests/app/Models/CategoryTest.php @@ -19,14 +19,14 @@ class CategoryTest extends PHPUnit\Framework\TestCase { /** @return array<array{string,string}> */ public function provideValidNames(): array { - return array( - array('', ''), - array('this string does not need trimming', 'this string does not need trimming'), - array(' this string needs trimming on left', 'this string needs trimming on left'), - array('this string needs trimming on right ', 'this string needs trimming on right'), - array(' this string needs trimming on both ends ', 'this string needs trimming on both ends'), - array(str_repeat('X', 512), str_repeat('X', FreshRSS_DatabaseDAO::LENGTH_INDEX_UNICODE)), // max length - ); + return [ + ['', ''], + ['this string does not need trimming', 'this string does not need trimming'], + [' this string needs trimming on left', 'this string needs trimming on left'], + ['this string needs trimming on right ', 'this string needs trimming on right'], + [' this string needs trimming on both ends ', 'this string needs trimming on both ends'], + [str_repeat('X', 512), str_repeat('X', FreshRSS_DatabaseDAO::LENGTH_INDEX_UNICODE)], // max length + ]; } public function test_feedOrdering(): void { |
