Skip to content

Commit 9ddd256

Browse files
Add icon option to action_can_be_set method
1 parent 0085ee3 commit 9ddd256

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/MessageTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ public function title_can_be_set()
2828
/** @test */
2929
public function action_can_be_set()
3030
{
31-
$this->message->action('Some Action', 'some_action');
31+
$this->message->action('Some Action', 'some_action', '/icon.png');
3232

33-
$this->assertEquals([['title' => 'Some Action', 'action' => 'some_action']], $this->message->toArray()['actions']);
33+
$this->assertEquals(
34+
[['title' => 'Some Action', 'action' => 'some_action', 'icon' => '/icon.png']], $this->message->toArray()['actions']
35+
);
3436
}
3537

3638
/** @test */

0 commit comments

Comments
 (0)