2222 */
2323trait NotificationAssertionsTrait
2424{
25- public static function assertNotificationCount (int $ count , string $ transport = null , string $ message = '' ): void
25+ public static function assertNotificationCount (int $ count , string $ transportName = null , string $ message = '' ): void
2626 {
27- self ::assertThat (self ::getNotificationEvents (), new NotifierConstraint \NotificationCount ($ count , $ transport ), $ message );
27+ self ::assertThat (self ::getNotificationEvents (), new NotifierConstraint \NotificationCount ($ count , $ transportName ), $ message );
2828 }
2929
30- public static function assertQueuedNotificationCount (int $ count , string $ transport = null , string $ message = '' ): void
30+ public static function assertQueuedNotificationCount (int $ count , string $ transportName = null , string $ message = '' ): void
3131 {
32- self ::assertThat (self ::getMessageMailerEvents (), new NotifierConstraint \NotificationCount ($ count , $ transport , true ), $ message );
32+ self ::assertThat (self ::getMessageMailerEvents (), new NotifierConstraint \NotificationCount ($ count , $ transportName , true ), $ message );
3333 }
3434
3535 public static function assertNotificationIsQueued (MessageEvent $ event , string $ message = '' ): void
@@ -42,50 +42,50 @@ public static function assertNotificationIsNotQueued(MessageEvent $event, string
4242 self ::assertThat ($ event , new LogicalNot (new NotifierConstraint \NotificationIsQueued ()), $ message );
4343 }
4444
45- public static function assertNotificationSubjectContains (MessageInterface $ messageObject , string $ text , string $ message = '' ): void
45+ public static function assertNotificationSubjectContains (MessageInterface $ notification , string $ text , string $ message = '' ): void
4646 {
47- self ::assertThat ($ messageObject , new NotifierConstraint \NotificationSubjectContains ($ text ), $ message );
47+ self ::assertThat ($ notification , new NotifierConstraint \NotificationSubjectContains ($ text ), $ message );
4848 }
4949
50- public static function assertNotificationSubjectNotContains (MessageInterface $ messageObject , string $ text , string $ message = '' ): void
50+ public static function assertNotificationSubjectNotContains (MessageInterface $ notification , string $ text , string $ message = '' ): void
5151 {
52- self ::assertThat ($ messageObject , new LogicalNot (new NotifierConstraint \NotificationSubjectContains ($ text )), $ message );
52+ self ::assertThat ($ notification , new LogicalNot (new NotifierConstraint \NotificationSubjectContains ($ text )), $ message );
5353 }
5454
55- public static function assertNotificationTransportIsEqual (MessageInterface $ messageObject , string $ text , string $ message = '' ): void
55+ public static function assertNotificationTransportIsEqual (MessageInterface $ notification , string $ transportName , string $ message = '' ): void
5656 {
57- self ::assertThat ($ messageObject , new NotifierConstraint \NotificationTransportIsEqual ($ text ), $ message );
57+ self ::assertThat ($ notification , new NotifierConstraint \NotificationTransportIsEqual ($ transportName ), $ message );
5858 }
5959
60- public static function assertNotificationTransportIsNotEqual (MessageInterface $ messageObject , string $ text , string $ message = '' ): void
60+ public static function assertNotificationTransportIsNotEqual (MessageInterface $ notification , string $ transportName , string $ message = '' ): void
6161 {
62- self ::assertThat ($ messageObject , new LogicalNot (new NotifierConstraint \NotificationTransportIsEqual ($ text )), $ message );
62+ self ::assertThat ($ notification , new LogicalNot (new NotifierConstraint \NotificationTransportIsEqual ($ transportName )), $ message );
6363 }
6464
6565 /**
6666 * @return MessageEvent[]
6767 */
68- public static function getNotifierEvents (string $ transport = null ): array
68+ public static function getNotifierEvents (string $ transportName = null ): array
6969 {
70- return self ::getNotificationEvents ()->getEvents ($ transport );
70+ return self ::getNotificationEvents ()->getEvents ($ transportName );
7171 }
7272
73- public static function getNotifierEvent (int $ index = 0 , string $ transport = null ): ?MessageEvent
73+ public static function getNotifierEvent (int $ index = 0 , string $ transportName = null ): ?MessageEvent
7474 {
75- return self ::getNotifierEvents ($ transport )[$ index ] ?? null ;
75+ return self ::getNotifierEvents ($ transportName )[$ index ] ?? null ;
7676 }
7777
7878 /**
7979 * @return MessageInterface[]
8080 */
81- public static function getNotifierMessages (string $ transport = null ): array
81+ public static function getNotifierMessages (string $ transportName = null ): array
8282 {
83- return self ::getNotificationEvents ()->getMessages ($ transport );
83+ return self ::getNotificationEvents ()->getMessages ($ transportName );
8484 }
8585
86- public static function getNotifierMessage (int $ index = 0 , string $ transport = null ): ?MessageInterface
86+ public static function getNotifierMessage (int $ index = 0 , string $ transportName = null ): ?MessageInterface
8787 {
88- return self ::getNotifierMessages ($ transport )[$ index ] ?? null ;
88+ return self ::getNotifierMessages ($ transportName )[$ index ] ?? null ;
8989 }
9090
9191 public static function getNotificationEvents (): NotificationEvents
0 commit comments