/** * testIndex description * @return void */ public function testIndex() { $response = $this->call('GET', 'dashboard'); $courses = Course::all(); $this->assertEquals(302, $response->getStatusCode()); $this->assertInstanceOf('Illuminate\\Database\\Eloquent\\Collection', $courses); }