function testNotificationJson() { $json = \Hypercharge\JsonSchemaFixture::notification('Scheduler_expiring.json'); $this->assertJson($json); $data = json_decode($json); $this->assertIdentical('f433a0bf7c9681f39b82ace9d2af7e96', $data->recurring_schedule_unique_id); }
/** * @param string $fileName e.g. "sale.json" for /vendor/hypercharge/hypercharge-schema/test/fixtures/sale.json * @return mixed array for *.json, string for other */ function schemaNotification($fileName) { return self::parseIfJson(JsonSchemaFixture::notification($fileName), $fileName); }