diff --git a/docs/4.x/AcceptanceTests.md b/docs/4.x/AcceptanceTests.md index 5bc8f8d31..0a100510f 100644 --- a/docs/4.x/AcceptanceTests.md +++ b/docs/4.x/AcceptanceTests.md @@ -244,7 +244,7 @@ you can pass instance `\Codeception\Step\Argument\PasswordArgument` with the dat {% highlight php %} amOnPage('/form/password_argument'); $I->fillField('password', new PasswordArgument('thisissecret')); diff --git a/docs/4.x/Customization.md b/docs/4.x/Customization.md index 287199276..998908dda 100644 --- a/docs/4.x/Customization.md +++ b/docs/4.x/Customization.md @@ -158,7 +158,7 @@ The extension class itself is inherited from `Codeception\Extension`: {% highlight php %} amOnPage('/form/password_argument'); $I->fillField('password', new PasswordArgument('thisissecret')); diff --git a/docs/AdvancedUsage.md b/docs/AdvancedUsage.md index 9fd64570e..0a9a4def5 100644 --- a/docs/AdvancedUsage.md +++ b/docs/AdvancedUsage.md @@ -54,7 +54,7 @@ As you see, we are passing the Actor object into `tryToTest` method. This allows amOnPage('/login'); @@ -398,8 +398,8 @@ namespace Tests\Acceptance; use Codeception\Attribute\Depends; -class ModeratorCest { - +class ModeratorCest +{ public function login(AcceptanceTester $I) { // logs moderator in @@ -425,7 +425,6 @@ Signature: ModeratorCest:login` Codeception reorders tests so dependent tests will always be executed before the tests that rely on them. - ## Environments For cases where you need to run tests with different configurations, you can define different config environments. diff --git a/docs/Customization.md b/docs/Customization.md index 5a4632135..3060f7836 100644 --- a/docs/Customization.md +++ b/docs/Customization.md @@ -147,7 +147,7 @@ The extension class itself is inherited from `Codeception\Extension`: ```php seeResponseCodeIs(HttpCode::OK); diff --git a/docs/reference/Locator.md b/docs/reference/Locator.md index 453285b58..b3f2c34e3 100644 --- a/docs/reference/Locator.md +++ b/docs/reference/Locator.md @@ -31,7 +31,7 @@ You can mix up CSS and XPath selectors here. {% highlight php %} see('Title', Locator::combine('h1','h2','h3')); @@ -43,7 +43,7 @@ You can also combine CSS selector with XPath locator: {% highlight php %} fillField(Locator::combine('form input[type=text]','//form/textarea[2]'), 'qwerty'); @@ -121,7 +121,7 @@ Finds element by it's attribute(s) {% highlight php %} seeElement(Locator::find('img', ['title' => 'diagram'])); @@ -167,7 +167,7 @@ Matches the *a* element with given URL {% highlight php %} see('Log In', Locator::href('/login.php')); @@ -342,7 +342,7 @@ You could try to match elements by their tab position using `tabIndex` method of {% highlight php %} fillField(Locator::tabIndex(1), 'davert'); $I->fillField(Locator::tabIndex(2) , 'qwerty'); diff --git a/docs/reference/Mock.md b/docs/reference/Mock.md index e7e7b7d5b..cc45cb3b9 100644 --- a/docs/reference/Mock.md +++ b/docs/reference/Mock.md @@ -292,7 +292,7 @@ exception. {% highlight php %} make('User', [ 'getName' => Expected::never(), @@ -316,7 +316,7 @@ exception. {% highlight php %} make( 'User', @@ -351,7 +351,7 @@ If the number of invocations is 0 it will throw an exception in verify. {% highlight php %} make( 'User', @@ -392,8 +392,8 @@ exception. {% highlight php %} make( 'User',