public function setUp() { parent::setUp(); $this->setEndPoint(UserApi::ENDPOINT); $this->validUserProfileDto = new UserProfileDto(['first_name' => 'Ima', 'last_name' => 'Test', 'address' => '123 Main Street', 'city' => 'Whoville', 'state' => 'PA', 'zip' => '12345-6789', 'country' => 'USA', 'website' => 'http://communique.idimensionz.com', 'company' => 'iDimensionz', 'phone' => '484-455-4WEB']); $this->validUserAccountDto = new UserAccountDto(['type' => 'free', 'reputation' => 99.7]); }
public function setUp() { parent::setUp(); $this->setEndPoint(TemplatesApi::ENDPOINT); $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()]; $templateData = $this->hasTemplateData(); $this->validTemplateDto = new TemplateDto($templateData); }