Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from methylbro/fix-19-campaign-startdt-format
Browse files Browse the repository at this point in the history
📅 fix #19 campaign START_DT value
  • Loading branch information
methylbro authored Dec 30, 2016
2 parents a69f640 + dc6cf34 commit 7c63b32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Request/CreateCampaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class CreateCampaign
{
const DATETIME_FORMAT = 'YmdHmi';
const DATETIME_FORMAT = 'YmdHis';

/**
* @var \XMLWriter $writer
Expand Down
2 changes: 1 addition & 1 deletion tests/Broadcast/CampaignTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testXml()
$this->assertEquals($campaign->getName(), (string) $document->CAMPAIGN['NAME']);
$this->assertEquals($campaign->getFolderId(), (int) $document->CAMPAIGN['FOLDERID']);
$this->assertEquals($campaign->getState(), (string) $document->CAMPAIGN['STATE']);
$this->assertEquals($campaign->getStartDate()->format(CreateCampaign::DATETIME_FORMAT), (string) $document->CAMPAIGN['START_DT']);
$this->assertEquals($campaign->getStartDate()->format('YmdHis'), (string) $document->CAMPAIGN['START_DT']);
$this->assertEquals($campaign->getDescription(), (string) $document->CAMPAIGN['DESCRIPTION']);
$this->assertEquals($campaign->getMaCategory(), (string) $document->CAMPAIGN['MACATEGORY']);
$this->assertEquals($campaign->getProductId(), (int) $document->CAMPAIGN['PRODUCTID']);
Expand Down

0 comments on commit 7c63b32

Please sign in to comment.