All kinds of new stuff for Codeception, which isn't working at ALL

This commit is contained in:
James Cole
2014-12-06 19:47:43 +01:00
parent dbc95dd878
commit 07610ae8fb
21 changed files with 2247 additions and 17 deletions

View File

@@ -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');
}

View File

@@ -1 +0,0 @@
/* Replace this file with actual dump of your database */

View File

@@ -11,4 +11,4 @@ modules:
- AcceptanceHelper
config:
PhpBrowser:
url: 'http://localhost/myapp/'
url: 'http://firefly.app/'

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,3 @@
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('perform actions and see result');

View 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']);

View File

@@ -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