Skip to content

Commit 080a12b

Browse files
committed
following the framework convention
1 parent 68f9fec commit 080a12b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/TestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
namespace NotificationChannels\Twitter\Test;
44

5-
use Mockery;
5+
use Mockery as m;
66

77
abstract 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
}

tests/TwitterChannelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Abraham\TwitterOAuth\TwitterOAuth;
66
use Illuminate\Notifications\Notifiable;
77
use Illuminate\Notifications\Notification;
8-
use Mockery;
8+
use Mockery as m;
99
use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification;
1010
use NotificationChannels\Twitter\TwitterChannel;
1111
use 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

tests/TwitterDirectMessageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace NotificationChannels\Twitter\Test;
44

55
use Abraham\TwitterOAuth\TwitterOAuth;
6-
use Mockery;
6+
use Mockery as m;
77
use NotificationChannels\Twitter\TwitterDirectMessage;
88

99
class 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
}

0 commit comments

Comments
 (0)