Skip to content

Commit

Permalink
Fix missing publish_at for ArticleTranslation operations
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfeehan committed May 20, 2014
1 parent 3c8309a commit 82e0ef5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ properties:
body_phone_auto: { extends: ArticleTranslationModel.body_phone_auto }
body_facebook: { extends: ArticleTranslationModel.body_facebook }
body_facebook_auto: { extends: ArticleTranslationModel.body_facebook_auto }
publish_at: { extends: ArticleTranslationModel.publish_at }
publish_at: { extends: ArticleTranslationModel.publish_at.output }
created_at: { extends: ArticleTranslationModel.created_at }
updated_at: { extends: ArticleTranslationModel.updated_at }
self:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,12 @@ ArticleTranslationModel.body_facebook:
description: Facebook-specific body content
type: string
ArticleTranslationModel.body_facebook_auto: { extends: body_auto }
ArticleTranslationModel.publish_at:
ArticleTranslationModel.publish_at.output:
extends: date.output
description: Date the article is to be published
ArticleTranslationModel.publish_at.input:
extends: date.input
description: Date the article is to be published
ArticleTranslationModel.created_at:
extends: date.output
description: Date the article was created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ protected function getDefaultSystemParameters()
public function dataParameterValid()
{
$body = '{"subject":"Spanish","body":"\\\\u00a1Hola!"}';
$date = new DateTime('@1234567890', new DateTimeZone('UTC'));

return array(
array(
Expand All @@ -51,6 +52,14 @@ public function dataParameterValid()
),
array('body' => "#^$body$#")
),
array(
array(
'article_id' => 2,
'locale' => 'de',
'publish_at' => $date,
),
array('body' => '#2009-02-13T23:31:30Z#')
),
);
}

Expand Down

0 comments on commit 82e0ef5

Please sign in to comment.