Support the ongoing development of Laravel.io →
posted 10 years ago
Testing

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?

Last updated 2 years ago.
0

Hi Mario,

Do you have enabled the Laravel4 module inside your functional.suite.yml file ?

Have a good day ;)

Last updated 2 years ago.
0

Yes, I do.

functional.suite.yml

class_name: FunctionalTester
modules:
    enabled: [Filesystem, FunctionalHelper, Laravel4]
Last updated 2 years ago.
0

any luck Mabasic? Im having the same problem.

Last updated 2 years ago.
0

leyluj said:

any luck Mabasic? Im having the same problem.

Still no luck :(

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mabasic mabasic Joined 3 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.