Score:0

Testing an internal Drupal API that requires POST

in flag

I want to add a test around an internal API in Drupal 8 that only accepts a POST payload and fires off some services. I am getting the following:

"curl error 3"

From Guzzle when trying:

$this->client->post('/path/to/api/123', ...opts

What would the base uri be under a Kernel test? Does this really need to be a Functional test?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.