Test<\/s>", "text_footer": "Test" } } } JSON; $model = TrackingResponse::create(json_decode($json, true)); $this->assertNotEmpty($model->getClick()); $this->assertInstanceOf(ClickTracking::class, $model->getClick()); $this->assertTrue($model->getClick()->isActive()); $this->assertNotEmpty($model->getOpen()); $this->assertInstanceOf(OpenTracking::class, $model->getOpen()); $this->assertTrue($model->getOpen()->isActive()); $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()); } }