Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and github-actions[bot] committed Dec 8, 2024
1 parent 0a4467c commit b991e11
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
11 changes: 11 additions & 0 deletions changelog.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ title: Codeception Changelog



### module-yii2 1.1.11: 1.1.11

Released by [![](https://avatars.githubusercontent.com/u/47294?v=4&s=16) samdark](https://github.com/samdark) on 2024/12/08 10:21:37 / [Repository](https://github.com/Codeception/module-yii2) / [Releases](https://github.com/Codeception/module-yii2/releases)



- Fix PHP 8.4 deprecation warnings (@W0rma)
- Fix broken `amLoggedInAs()` (@warkadiuszz)
- Improved typing (@SamMousa)


### module-symfony 3.5.0: 3.5.0

Released by [![](https://avatars.githubusercontent.com/u/64917965?v=4&s=16) TavoNiievez](https://github.com/TavoNiievez) on 2024/11/14 05:59:41 / [Repository](https://github.com/Codeception/module-symfony) / [Releases](https://github.com/Codeception/module-symfony/releases)
Expand Down
32 changes: 17 additions & 15 deletions docs/modules/Yii2.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ commands that expect a URL:
{% highlight php %}

<?php
$I->amOnPage('index-test.php?site/index');
$I->amOnPage('http://localhost/index-test.php?site/index');
$I->amOnPage('index-test.php?r=site/index');
$I->amOnPage('http://localhost/index-test.php?r=site/index');
$I->sendAjaxPostRequest(['/user/update', 'id' => 1], ['UserForm[name]' => 'G.Hopper']);

{% endhighlight %}
Expand All @@ -171,7 +171,6 @@ $I->sendAjaxPostRequest(['/user/update', 'id' => 1], ['UserForm[name]' => 'G.Hop
Maintainer: **samdark**
Stability: **stable**

@property \Codeception\Lib\Connector\Yii2 $client

### Actions

Expand Down Expand Up @@ -320,8 +319,9 @@ Authenticates user for HTTP_AUTH

#### amLoggedInAs

* `param ` $user
* `param \yii\web\IdentityInterface|string|int` $user
* `throws \Codeception\Exception\ModuleException`
* `return void`

Authenticates a user on a site without submitting a login form.

Expand All @@ -343,10 +343,10 @@ Requires the `user` component to be enabled and configured.

#### amOnPage

* `param string` $page the page URI
* `param string` $page
* `return void`

Opens the page for the given relative URI or route.
Opens the page for the given relative URI.

{% highlight php %}

Expand Down Expand Up @@ -728,7 +728,7 @@ $I->dontSeeOptionIsSelected('#form input[name=payment]', 'Visa');
#### dontSeeRecord

* `part` orm
* `param ` $model
* `param class-string<\yii\db\ActiveRecord>` $model
* `param array` $attributes
* `return void`

Expand Down Expand Up @@ -818,9 +818,9 @@ $I->grabAttributeFrom('#tooltip', 'title');
#### grabComponent

@deprecated
* `param ` $component
* `param string` $component
* `throws \Codeception\Exception\ModuleException`
* `return mixed`
* `return ?object`

Gets a component from the Yii container. Throws an exception if the
component is not available
Expand Down Expand Up @@ -957,9 +957,9 @@ Grabs current page source code.
#### grabRecord

* `part` orm
* `param ` $model
* `param class-string<\yii\db\ActiveRecord>` $model
* `param array` $attributes
* `return mixed`
* `return \yii\db\ActiveRecord|array|null`

Retrieves a record from the database

Expand Down Expand Up @@ -1035,6 +1035,7 @@ $name = $I->grabValueFrom(['name' => 'username']);

* `part` fixtures
* `param ` $fixtures
* `return void`

Creates and loads fixtures from a config.

Expand Down Expand Up @@ -1108,9 +1109,10 @@ $I->haveHttpHeader('Client&#95;Id', 'Codeception');

#### haveRecord

* `template` T of \yii\db\ActiveRecord
* `part` orm
* `param ` $model
* `param array` $attributes
* `param class-string<T>` $model
* `param ` $attributes
* `return mixed`

Inserts a record into the database.
Expand Down Expand Up @@ -1309,7 +1311,7 @@ $I->seeElement(['css' => 'form input'], ['name' => 'login']);
#### seeEmailIsSent

* `part` email
* `param int` $num
* `param int|null` $num
* `throws \Codeception\Exception\ModuleException`
* `return void`

Expand Down Expand Up @@ -1529,7 +1531,7 @@ Asserts that current page has 404 response status code.
#### seeRecord

* `part` orm
* `param ` $model
* `param class-string<\yii\db\ActiveRecord>` $model
* `param array` $attributes
* `return void`

Expand Down

0 comments on commit b991e11

Please sign in to comment.