Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IndexTest.php « tests - github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: af4001544ba1f760205b21e031f2467e226df72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

class IndexTest extends TestCase
{
    /**
     * Test Index
     *
     * @return void
     */
    public function testIndex() {
        $this->visit('/')
             ->see('<h1 class=\'title\'>'. env('APP_NAME') .'</h1>') // Ensure page loads correctly
             ->see('<meta name="csrf-token"') // Ensure CSRF protection is enabled
             ->see('>Sign In</a>') // Ensure log in buttons are shown when user is logged out
             ->dontSee('SQLSTATE'); // Ensure database connection is correct
    }
}