Skip to content

Commit

Permalink
Correcao de buttons para elements
Browse files Browse the repository at this point in the history
  • Loading branch information
vipeol committed Jul 1, 2017
1 parent 477ec2b commit bd1985b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/TemplatesMessage/GenericTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function message(string $messageText) : array
'type' => 'template',
'payload' => [
'template_type' => 'generic',
'buttons' => $this->products
'elements' => $this->products
]
]
]
Expand Down
2 changes: 1 addition & 1 deletion src/TemplatesMessage/ListTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function message(string $messageText) : array
'type' => 'template',
'payload' => [
'template_type' => 'list',
'buttons' => $this->products
'elements' => $this->products
]
]
]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/TemplatesMessage/GenericTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testListaComDoisProdutos()
'type' => 'template',
'payload' => [
'template_type' => 'generic',
'buttons' => [
'elements' => [
[
'title' => 'Produto 1',
'subtitle' => 'Curso de Angular',
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/TemplatesMessage/ListTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testListaComDoisProdutos()
'type' => 'template',
'payload' => [
'template_type' => 'list',
'buttons' => [
'elements' => [
[
'title' => 'Produto 1',
'subtitle' => 'Curso de Angular',
Expand Down

0 comments on commit bd1985b

Please sign in to comment.