We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8bf0c commit f2265fcCopy full SHA for f2265fc
test/requestparse_tests.php
@@ -97,6 +97,22 @@ public function testMapFnToApiMethod()
97
], $result);
98
// check that inline parameter was removed from array
99
$this->assertArrayNotHasKey('account_id', $apiparams);
100
+
101
+ $apiparams = [
102
+ 'test' => 1,
103
+ 'env_name' => 'testenv'
104
+ ];
105
+ $result = $cb->call(
106
+ '_mapFnToApiMethod',
107
+ 'accountActivity_all_ENV_NAME_webhooks',
108
+ $apiparams
109
+ );
110
+ $this->assertEquals([
111
+ 'account_activity/all/testenv/webhooks',
112
+ 'account_activity/all/:env_name/webhooks'
113
+ ], $result);
114
+ // check that inline parameter was removed from array
115
+ $this->assertArrayNotHasKey('env_name', $apiparams);
116
}
117
118
/**
0 commit comments