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(); }
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); }