File tree 7 files changed +13
-13
lines changed
7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace App \Console \Commands ;
4
4
5
- use App \Github \ActivityStreams \GithubStream ;
5
+ use App \GitHub \ActivityStreams \GithubStream ;
6
6
use Illuminate \Console \Command ;
7
7
8
8
class FetchGithubActivityStream extends Command
@@ -13,13 +13,13 @@ class FetchGithubActivityStream extends Command
13
13
/** @var string */
14
14
protected $ description = 'Fetch the Github activity stream ' ;
15
15
16
- /** @var \App\Github \ActivityStreams\GithubStream */
16
+ /** @var \App\GitHub \ActivityStreams\GithubStream */
17
17
protected $ githubActivityStream ;
18
18
19
19
/**
20
20
* ConnectTwitterStream constructor.
21
21
*
22
- * @param \App\Github \ActivityStreams\GithubStream $githubStream
22
+ * @param \App\GitHub \ActivityStreams\GithubStream $githubStream
23
23
*/
24
24
public function __construct (GithubStream $ githubStream )
25
25
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace App \Github ;
3
+ namespace App \GitHub ;
4
4
5
5
use Illuminate \Database \Eloquent \Model ;
6
6
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace App \Github \ActivityStreams ;
3
+ namespace App \GitHub \ActivityStreams ;
4
4
5
5
use App \ActivityStreams \PeriodicStream ;
6
6
use App \ActivityStreams \PeriodicStreamInterface ;
7
- use App \Github \Jobs \ProcessActivity ;
7
+ use App \GitHub \Jobs \ProcessActivity ;
8
8
use Carbon \Carbon ;
9
9
use Illuminate \Support \Collection ;
10
10
use Illuminate \Foundation \Bus \DispatchesJobs ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace App \Github \Jobs ;
3
+ namespace App \GitHub \Jobs ;
4
4
5
- use App \Github \Activity ;
5
+ use App \GitHub \Activity ;
6
6
use Carbon \Carbon ;
7
7
use Illuminate \Bus \Queueable ;
8
8
use Illuminate \Queue \SerializesModels ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace App \Providers ;
4
4
5
- use App \Github \ActivityStreams \GithubStream ;
5
+ use App \GitHub \ActivityStreams \GithubStream ;
6
6
use App \Twitter \ActivityStreams \TwitterStream ;
7
7
use GuzzleHttp \Client ;
8
8
use GuzzleHttp \ClientInterface ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class GithubStreamTest extends TestCase
4
4
{
5
5
use \Illuminate \Foundation \Testing \DatabaseMigrations;
6
6
7
- /** @var \App\Github \ActivityStreams\GithubStream */
7
+ /** @var \App\GitHub \ActivityStreams\GithubStream */
8
8
private $ githubStream ;
9
9
10
10
/** @var string fake GitHub API response body */
@@ -32,7 +32,7 @@ public function setUp()
32
32
$ client ->method ('get ' )->willReturn ($ response );
33
33
$ response ->method ('getBody ' )->willReturn ($ this ->fakeResponseBody );
34
34
35
- $ this ->githubStream = new \App \Github \ActivityStreams \GithubStream ($ client );
35
+ $ this ->githubStream = new \App \GitHub \ActivityStreams \GithubStream ($ client );
36
36
}
37
37
38
38
public function testImplementsPeriodicStream ()
@@ -57,7 +57,7 @@ public function testNewActivityDispatchesJob()
57
57
{
58
58
$ this ->fakeResponseBody ->method ('getContents ' )->willReturn ($ this ->getFakeGithubActivity ());
59
59
60
- $ this ->expectsJobs ([\App \Github \Jobs \ProcessActivity::class]);
60
+ $ this ->expectsJobs ([\App \GitHub \Jobs \ProcessActivity::class]);
61
61
62
62
$ this ->githubStream ->consume ();
63
63
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class StreamControllerTest extends TestCase
10
10
11
11
public function testStreamFetch ()
12
12
{
13
- $ streamMock = Mockery::mock (\App \Github \ActivityStreams \GithubStream::class)->makePartial ();
13
+ $ streamMock = Mockery::mock (\App \GitHub \ActivityStreams \GithubStream::class)->makePartial ();
14
14
$ sessionMock = Mockery::mock (\Illuminate \Session \Store::class)->makePartial ();
15
15
$ requestMock = Mockery::mock (\Illuminate \Http \Request::class)->makePartial ();
16
16
You can’t perform that action at this time.
0 commit comments