tests: Fix url generation mocks and cleanup some phpunit code
Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
@@ -102,7 +102,7 @@ class FilterStringParserTest extends TestCase {
|
||||
Assert::assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
public function dataParseDate() {
|
||||
public static function dataParseDate() {
|
||||
return [
|
||||
['date:today', [new DateQueryParameter('date', SearchQuery::COMPARATOR_EQUAL, 'today')], []],
|
||||
['date:>today', [new DateQueryParameter('date', SearchQuery::COMPARATOR_MORE, 'today')], []],
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace OCA\Deck\Search\Query;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class AQueryParameterTest extends TestCase {
|
||||
public function dataValue() {
|
||||
public static function dataValue() {
|
||||
return [
|
||||
['foo', 'foo'],
|
||||
['spätial character', 'spätial character'],
|
||||
|
||||
Reference in New Issue
Block a user