'http://example.org/a'], 'Created'), ]); $stack = HandlerStack::create($mock); // add the history middleware to the stack $stack->push($history); $client = new Client(['handler' => $stack]); $this->app->instance(Client::class, $client); $response = $this->post( '/micropub', [ 'content' => 'Hello Fred', 'in-reply-to' => 'https://fredbloggs.com/note/abc', 'mp-syndicate-to' => ['https://twitter.com/jonnybarnes', 'https://facebook.com/jonnybarnes'], ] ); $expected = '{"type":["h-entry"],"properties":{"content":["Hello Fred"],"in-reply-to":["https:\/\/fredbloggs.com\/note\/abc"],"mp-syndicate-to":["https:\/\/twitter.com\/jonnybarnes","https:\/\/facebook.com\/jonnybarnes"]}}'; if (count($container) === 0) { $this->fail(); } foreach ($container as $transaction) { $this->assertEquals($expected, $transaction['request']->getBody()->getContents()); } */ $this->assertTrue(true); } }