Skip to content

Commit ef6b345

Browse files
committed
Fixed autoloading Steps in web suite
1 parent fdfeb69 commit ef6b345

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/web/FriendWithStepsCept.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
$I = new WebGuy($scenario);
33
$I->wantTo('call friend with steps to ask expert work');
44
$I->amOnPage('/info');
5-
$john = $I->haveFriend('john', '\WebGuy\RootWatcherSteps');
6-
$john->does(function (WebGuy\RootWatcherSteps $I) {
5+
$john = $I->haveFriend('john', '\WebGuy\Steps\RootWatcher');
6+
$john->does(function (WebGuy\Steps\RootWatcher $I) {
77
$I->seeInRootPage('Welcome to test app!');
88
});
99
$I->seeInCurrentUrl('/info');

tests/web/_bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22
// Here you can initialize variables that will for your tests
33

4-
//\Codeception\Util\Autoload::registerSuffix('Steps', __DIR__.DIRECTORY_SEPARATOR.'_steps');
4+
\Codeception\Util\Autoload::addNamespace('WebGuy\Steps', __DIR__.DIRECTORY_SEPARATOR . '_steps');

tests/web/_steps/RootWatcherSteps.php renamed to tests/web/_steps/RootWatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
2-
namespace WebGuy;
2+
namespace WebGuy\Steps;
33

4-
class RootWatcherSteps extends \WebGuy
4+
class RootWatcher extends \WebGuy
55
{
66
public function seeInRootPage($selector)
77
{

0 commit comments

Comments
 (0)