File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
33namespace NotificationChannels \Twitter \Test ;
44
5- use Mockery ;
5+ use Mockery as m ;
66
77abstract class TestCase extends \Orchestra \Testbench \TestCase
88{
99 public function tearDown (): void
1010 {
1111 parent ::tearDown ();
1212
13- if ($ container = Mockery ::getContainer ()) {
13+ if ($ container = m ::getContainer ()) {
1414 $ this ->addToAssertionCount ($ container ->mockery_getExpectationCount ());
1515 }
1616
17- Mockery ::close ();
17+ m ::close ();
1818 }
1919}
Original file line number Diff line number Diff line change 55use Abraham \TwitterOAuth \TwitterOAuth ;
66use Illuminate \Notifications \Notifiable ;
77use Illuminate \Notifications \Notification ;
8- use Mockery ;
8+ use Mockery as m ;
99use NotificationChannels \Twitter \Exceptions \CouldNotSendNotification ;
1010use NotificationChannels \Twitter \TwitterChannel ;
1111use NotificationChannels \Twitter \TwitterMessage ;
@@ -24,7 +24,7 @@ class TwitterChannelTest extends TestCase
2424 public function setUp (): void
2525 {
2626 parent ::setUp ();
27- $ this ->twitter = Mockery ::mock (TwitterOAuth::class);
27+ $ this ->twitter = m ::mock (TwitterOAuth::class);
2828 $ this ->channel = new TwitterChannel ($ this ->twitter );
2929 }
3030
Original file line number Diff line number Diff line change 33namespace NotificationChannels \Twitter \Test ;
44
55use Abraham \TwitterOAuth \TwitterOAuth ;
6- use Mockery ;
6+ use Mockery as m ;
77use NotificationChannels \Twitter \TwitterDirectMessage ;
88
99class TwitterDirectMessageTest extends TestCase
@@ -15,7 +15,7 @@ class TwitterDirectMessageTest extends TestCase
1515 public function setUp (): void
1616 {
1717 parent ::setUp ();
18- $ this ->twitter = Mockery ::mock (TwitterOAuth::class);
18+ $ this ->twitter = m ::mock (TwitterOAuth::class);
1919 $ this ->messageWithUserId = new TwitterDirectMessage (1234 , 'myMessage ' );
2020 $ this ->messageWithScreenName = new TwitterDirectMessage ('receiver ' , 'myMessage ' );
2121 }
You can’t perform that action at this time.
0 commit comments