test", "text_footer": "test" }, "message": "Domain tracking settings have been updated" } JSON; $model = UpdateUnsubscribeTrackingResponse::create(json_decode($json, true)); $this->assertNotEmpty($model->getMessage()); $this->assertEquals('Domain tracking settings have been updated', $model->getMessage()); $this->assertNotEmpty($model->getUnsubscribe()); $this->assertInstanceOf(UnsubscribeTracking::class, $model->getUnsubscribe()); $this->assertTrue($model->getUnsubscribe()->isActive()); $this->assertEquals('test', $model->getUnsubscribe()->getHtmlFooter()); $this->assertEquals('test', $model->getUnsubscribe()->getTextFooter()); } }