diff options
author | Zoltan Flamis <flamisz@gmail.com> | 2021-03-15 12:45:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 12:45:45 +0300 |
commit | d38da1a49c4809c8c3a9df4ca8079101f8819644 (patch) | |
tree | d8c88837493a16a343f20b1db5df13292c950501 | |
parent | 1a688e5ec4c4c96f7017b59bb2dbfac78c7c81d1 (diff) |
test for trim action name (#17266)
* trim action name
* test for trim action_name
-rw-r--r-- | tests/PHPUnit/Integration/Tracker/ActionTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/Tracker/ActionTest.php b/tests/PHPUnit/Integration/Tracker/ActionTest.php index c6579b7895..afb43e806e 100644 --- a/tests/PHPUnit/Integration/Tracker/ActionTest.php +++ b/tests/PHPUnit/Integration/Tracker/ActionTest.php @@ -409,6 +409,12 @@ class ActionTest extends IntegrationTestCase 'url' => 'http://example.org/ACTION/URL', 'type' => Action::TYPE_PAGE_URL), ), + array( + 'request' => array('url' => 'http://example.org/', 'action_name' => ' not trimmed '), + 'expected' => array('name' => 'not trimmed', + 'url' => 'http://example.org/', + 'type' => Action::TYPE_PAGE_URL), + ), ); } |