mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
All kinds of new stuff for Codeception, which isn't working at ALL
This commit is contained in:
@@ -1,2 +1,8 @@
|
||||
<?php
|
||||
// This is global bootstrap for autoloading
|
||||
$db = realpath(__DIR__ . '/_data') . '/testing.sqlite';
|
||||
|
||||
if (!file_exists($db)) {
|
||||
exec('touch ' . $db);
|
||||
exec('php artisan migrate --seed --env=testing');
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/* Replace this file with actual dump of your database */
|
||||
@@ -11,4 +11,4 @@ modules:
|
||||
- AcceptanceHelper
|
||||
config:
|
||||
PhpBrowser:
|
||||
url: 'http://localhost/myapp/'
|
||||
url: 'http://firefly.app/'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php //[STAMP] 6d8b4518def1c0712832bc07010a0f73
|
||||
<?php //[STAMP] 839413cdedfabfaf37368d4d42aaa8e6
|
||||
|
||||
// This class was automatically generated by build task
|
||||
// You should not change it manually as it will be overwritten on next build
|
||||
|
||||
@@ -6,4 +6,7 @@
|
||||
|
||||
class_name: FunctionalTester
|
||||
modules:
|
||||
enabled: [Filesystem, FunctionalHelper]
|
||||
enabled: [Db, Filesystem, FunctionalHelper, Laravel4]
|
||||
config:
|
||||
Laravel4:
|
||||
environment: 'testing'
|
||||
File diff suppressed because it is too large
Load Diff
3
tests/functional/LoginCept.php
Normal file
3
tests/functional/LoginCept.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$I = new FunctionalTester($scenario);
|
||||
$I->wantTo('perform actions and see result');
|
||||
7
tests/functional/RegisterCept.php
Normal file
7
tests/functional/RegisterCept.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$I = new FunctionalTester($scenario);
|
||||
$I->wantTo('register a new account');
|
||||
$I->amOnPage('/register');
|
||||
$I->submitForm('#register', ['email' => 'noreply@gmail.com']);
|
||||
$I->see('Password sent!');
|
||||
$I->seeInDatabase('users', ['email' => 'noreply@gmail.com']);
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php //[STAMP] c03a19ab6ad087934a18d04c48d8412a
|
||||
<?php //[STAMP] edd6266044f8995765e1218f33d26102
|
||||
|
||||
// This class was automatically generated by build task
|
||||
// You should not change it manually as it will be overwritten on next build
|
||||
|
||||
Reference in New Issue
Block a user