I just started writing functional tests and when running the tests on homestead they pass, but when i run the same test on Windows it fails saying:
RuntimeException: Call to undefined method FunctionalTester::amOnRoute
I ran codecept build
on both homestead and my local PC, but the test still fails on Windows and passes in homestead.
This is my test:
<?php
$I = new FunctionalTester($scenario);
$I->am('guest');
$I->wantTo('view coming soon page');
$I->amOnRoute('coming_soon');
$I->seeElement('img', ['alt' => 'logo']);
Any help?
Hi Mario,
Do you have enabled the Laravel4
module inside your functional.suite.yml
file ?
Have a good day ;)
Yes, I do.
functional.suite.yml
class_name: FunctionalTester
modules:
enabled: [Filesystem, FunctionalHelper, Laravel4]
any luck Mabasic? Im having the same problem.
leyluj said:
any luck Mabasic? Im having the same problem.
Still no luck :(
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community