Example #1
0
 public function setUp()
 {
     parent::setUp();
     Artisan::call('migrate');
     Artisan::call('db:seed');
     $this->project = \App\Project::firstOrFail();
     $this->user = \App\User::firstOrFail();
     $this->feed = \App\Feed::firstOrFail();
     $this->comment = $this->feed->comments->first();
 }
Example #2
0
 public function testPostStatus()
 {
     $user = User::firstOrFail();
     $project = Project::firstOrFail();
     $status = Bus::dispatch(new PostStatus($user, ['message' => 'shimmu'], $project));
     $this->assertNotNull($status->project);
     $this->assertNotNull($status->owner);
 }