1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Tweaked some styles and started automated testing. Fixes #11.

This commit is contained in:
Dan Brown
2015-09-02 18:26:33 +01:00
parent 30d2edddda
commit 713827f941
23 changed files with 254 additions and 55 deletions

32
tests/AuthTest.php Normal file
View File

@ -0,0 +1,32 @@
<?php
class AuthTest extends TestCase
{
public function testAuthWorking()
{
$this->visit('/')
->seePageIs('/login');
}
public function testLogin()
{
$this->visit('/')
->seePageIs('/login')
->type('admin@admin.com', '#email')
->type('password', '#password')
->press('Sign In')
->seePageIs('/')
->see('BookStack');
}
public function testLogout()
{
$this->asAdmin()
->visit('/')
->seePageIs('/')
->visit('/logout')
->visit('/')
->seePageIs('/login');
}
}