mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 19:52:28 +01:00
18 lines
525 B
PHP
18 lines
525 B
PHP
<?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
|
|
}
|
|
}
|