public function testToArrayReturnsArrayWithValidData()
 {
     $actualArray = $this->templateDto->toArray();
     $this->assertTrue(is_array($actualArray));
     $this->assertArrayHasKey('id', $actualArray);
     $this->assertEquals($this->validId, $actualArray['id']);
     $this->assertArrayHasKey('name', $actualArray);
     $this->assertEquals($this->validName, $actualArray['name']);
     $this->assertArrayHasKey('versions', $actualArray);
     $this->assertEquals($this->validVersions, $actualArray['versions']);
 }
 public function testUpdateTemplateReturnsTemplateDto()
 {
     $this->hasSendGridPatchRequest("/{$this->validId}", $this->validTemplateDto->toArray(), ['name' => $this->validName]);
     $actualTemplateDto = $this->templatesApi->updateTemplate($this->validId, $this->validName);
     $this->assertEquals($this->validTemplateDto, $actualTemplateDto);
 }