public function setUp()
 {
     parent::setUp();
     $this->validId = '733ba07f-ead1-41fc-933a-3976baa23716';
     $this->validName = 'This is a valid template name';
     $this->validVersion = new TemplateVersionDto(['id' => $this->validId, 'template_id' => 'e3a61852-1acb-4b32-a1bc-b44b3814ab78', 'active' => 1, 'name' => $this->validName, 'html_content' => '<%body%>', 'plain_content' => '<%body%>', 'subject' => '<%subject%>', 'updated_at' => '2015-11-14 10:45:00']);
     $this->validVersions = [$this->validVersion->toArray()];
     $this->hasTemplateDto();
 }
 public function testToArrayReturnsValidArray()
 {
     $this->hasTemplateVersionDto();
     $actualArray = $this->templateVersionDto->toArray();
     $this->assertEquals($this->validTemplateVersionData, $actualArray);
 }