/** * {@inheritdoc} */ public function sendNotification(Notification $notification) { $path = '/statuses/update.json'; $response = $this->getApiClient()->post($path, $notification->getContentDecoded(), $this->buildHeaders($path, "POST", $notification)); return null !== $response ? true : false; }
/** * @dataProvider getProvidedData */ public function testGetContentDecoded(Notification $emailNotification) { $this->assertEquals(json_decode($emailNotification->getContent(), true), $emailNotification->getContentDecoded()); }