/** * Testing the decodeQueryParams method with a known encrypted result for a test key. * * @since 1.0 */ public function testDecodeQueryParams() { $config = ConfigProvider::getInstance(); $oldKey = $config->get('security.encryption.key'); $config->set('security.encryption.key', 'testkey12345678901234567'); $tk = '7eYCDOP1AFAv2Kc45D2eSgFM1dJ2mboM4fMMMjs3PP6cb8Qafsv0L06zZjWeIWRH'; $this->assertEquals('act=ViewArticleTitle&title=Test_Title', FrontController::decodeQueryParams($tk), 'testing the decodeQueryParams method with a known encrypted result for a test key'); $config->set('security.encryption.key', $oldKey); }