Implement command to manage redirect rules for a short URL

This commit is contained in:
Alejandro Celaya
2024-03-02 22:44:22 +01:00
parent c36e43e249
commit d8ede3263f
15 changed files with 365 additions and 28 deletions

View File

@@ -18,7 +18,7 @@ class ListRedirectRulesTest extends ApiTestCase
'matchValue' => 'en',
];
private const QUERY_FOO_BAR_CONDITION = [
'type' => 'query',
'type' => 'query-param',
'matchKey' => 'foo',
'matchValue' => 'bar',
];
@@ -53,7 +53,7 @@ class ListRedirectRulesTest extends ApiTestCase
'priority' => 2,
'conditions' => [
[
'type' => 'query',
'type' => 'query-param',
'matchKey' => 'hello',
'matchValue' => 'world',
],

View File

@@ -19,7 +19,7 @@ class SetRedirectRulesTest extends ApiTestCase
'matchValue' => 'en',
];
private const QUERY_FOO_BAR_CONDITION = [
'type' => 'query',
'type' => 'query-param',
'matchKey' => 'foo',
'matchValue' => 'bar',
];
@@ -75,7 +75,7 @@ class SetRedirectRulesTest extends ApiTestCase
'priority' => 2,
'conditions' => [
[
'type' => 'query',
'type' => 'query-param',
'matchKey' => 'hello',
'matchValue' => 'world',
],