Skip to content

Commit

Permalink
added PasswordArgument to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Feb 26, 2018
1 parent 7308b14 commit 881b517
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/03-AcceptanceTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,22 @@ $I->submitForm('#update_form', array('user' => array(
)));
```

##### Hiding Sensitive Data

If you need to fill in sensitive data (like passwords) and hide it in logs,
you can pass instance `\Codeception\Step\Argument\PasswordArgument` with the data which needs to be hidden.

```php
<?php
<?php
use \Codeception\Step\Argument\PasswordArgument;

$I->amOnPage('/form/password_argument');
$I->fillField('password', new PasswordArgument('thisissecret'));
```

`thisissecret` will be filled into a form but it won't be shown in output and logs.

#### Assertions

In the `PhpBrowser` you can test the page contents.
Expand Down

0 comments on commit 881b517

Please sign in to comment.