So codeception has died before finishing its job, I guess. You should find where it stop adding stupid die('step1') in your test to find where codeception fails.
Anything in codeception logs ?
I'm not quite sure what I'm missing here. My test seems simple enough - I'm just not sure why it's failing on the it_logs_the_user_in test.
Here's my test:
<?php
// ...
public function it_logs_the_user_in(FunctionalTester $I)
{
$I->am('guest');
$I->amGoingTo('log into the dashboard');
$I->haveEnabledFilters();
$I->dontSeeAuthentication();
$I->amOnRoute('auth.login');
$I->seeCurrentUrlEquals('/auth/login');
$I->seeElement('form');
$I->seeElement('input[type="email"]');
$I->seeElement('input[type="password"]');
$I->fillField('email', 'email@domain.com');
$I->fillField('password', 'test');
$I->click('Log In');
$I->seeCurrentUrlEquals('/dashboard');
$I->seeAuthentication();
}
Note: I've got some extra calls in there just to test/practice, etc. so there are some calls that aren't needed.
I'm running using my development database right now - no testing database. Have configured and rebuilt the codecept config as follows:
class_name: FunctionalTester
modules:
enabled: [Filesystem, FunctionalHelper, Laravel4, Asserts, Db]
config:
Db:
dsn: 'mysql:host=localhost;dbname=anc_clients_development'
user: 'homestead'
password: 'secret'
dump: tests/_data/dump.sql
preload: true
cleanup: true
Not sure what I'm missing. When the test is run, it just doesn't work, but there aren't any errors, etc. being reported.
Please or to participate in this conversation.