Test<\/s>", "text_footer": "Test" } } } JSON; $model = TrackingResponse::create(json_decode($json, true)); $this->assertNotEmpty($model->getClick()); $this->assertInstanceOf(ClickTracking::class, $model->getClick()); $this->assertEquals('htmlonly', $model->getClick()->getActive()); $this->assertFalse($model->getClick()->isActive()); $this->assertNotEmpty($model->getOpen()); $this->assertInstanceOf(OpenTracking::class, $model->getOpen()); $this->assertEquals('no', $model->getOpen()->getActive()); $this->assertFalse($model->getOpen()->isActive()); $this->assertNotEmpty($model->getUnsubscribe()); $this->assertInstanceOf(UnsubscribeTracking::class, $model->getUnsubscribe()); $this->assertEquals('false', $model->getUnsubscribe()->getActive()); $this->assertFalse($model->getUnsubscribe()->isActive()); $this->assertEquals('Test', $model->getUnsubscribe()->getHtmlFooter()); $this->assertEquals('Test', $model->getUnsubscribe()->getTextFooter()); } }