1 | <?php |
||
18 | class EchoNotificationsManagerTest extends \PHPUnit_Framework_TestCase { |
||
19 | |||
20 | public function testInitNotificationsDefinitions() { |
||
21 | |||
22 | $instance = new EchoNotificationsManager(); |
||
23 | |||
24 | $notifications = array(); |
||
25 | $notificationCategories = array(); |
||
26 | $icons = array(); |
||
27 | |||
28 | $instance->initNotificationsDefinitions( |
||
29 | $notifications, |
||
30 | $notificationCategories, |
||
31 | $icons |
||
32 | ); |
||
33 | |||
34 | $this->assertArrayHasKey( |
||
35 | ChangeNotificationFilter::VALUE_CHANGE, |
||
36 | $notifications |
||
37 | ); |
||
38 | |||
39 | $this->assertArrayHasKey( |
||
40 | ChangeNotificationFilter::SPECIFICATION_CHANGE, |
||
41 | $notifications |
||
42 | ); |
||
43 | |||
44 | $this->assertArrayHasKey( |
||
45 | ChangeNotificationFilter::VALUE_CHANGE, |
||
46 | $notificationCategories |
||
47 | ); |
||
48 | |||
49 | $this->assertArrayHasKey( |
||
50 | ChangeNotificationFilter::SPECIFICATION_CHANGE, |
||
51 | $notificationCategories |
||
52 | ); |
||
53 | |||
54 | $this->assertArrayHasKey( |
||
55 | ChangeNotificationFilter::VALUE_CHANGE, |
||
56 | $icons |
||
57 | ); |
||
58 | |||
59 | $this->assertArrayHasKey( |
||
60 | ChangeNotificationFilter::SPECIFICATION_CHANGE . '-property', |
||
61 | $icons |
||
62 | ); |
||
63 | |||
64 | $this->assertArrayHasKey( |
||
65 | ChangeNotificationFilter::SPECIFICATION_CHANGE . '-category', |
||
66 | $icons |
||
67 | ); |
||
68 | } |
||
69 | |||
70 | public function testAddDefaultOptions() { |
||
85 | |||
86 | public function testGetNotificationsBundle() { |
||
119 | |||
120 | public function testCreateEvent() { |
||
143 | |||
144 | } |
||
145 |