Skip to content

Commit b991e11

Browse files
github-actions[bot]github-actions[bot]
authored andcommitted
updated
1 parent 0a4467c commit b991e11

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed

changelog.markdown

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ title: Codeception Changelog
99

1010

1111

12+
### module-yii2 1.1.11: 1.1.11
13+
14+
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)
15+
16+
17+
18+
- Fix PHP 8.4 deprecation warnings (@W0rma)
19+
- Fix broken `amLoggedInAs()` (@warkadiuszz)
20+
- Improved typing (@SamMousa)
21+
22+
1223
### module-symfony 3.5.0: 3.5.0
1324

1425
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)

docs/modules/Yii2.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ commands that expect a URL:
160160
{% highlight php %}
161161

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

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

174-
@property \Codeception\Lib\Connector\Yii2 $client
175174

176175
### Actions
177176

@@ -320,8 +319,9 @@ Authenticates user for HTTP_AUTH
320319

321320
#### amLoggedInAs
322321

323-
* `param ` $user
322+
* `param \yii\web\IdentityInterface|string|int` $user
324323
* `throws \Codeception\Exception\ModuleException`
324+
* `return void`
325325

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

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

344344
#### amOnPage
345345

346-
* `param string` $page the page URI
346+
* `param string` $page
347347
* `return void`
348348

349-
Opens the page for the given relative URI or route.
349+
Opens the page for the given relative URI.
350350

351351
{% highlight php %}
352352

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

730730
* `part` orm
731-
* `param ` $model
731+
* `param class-string<\yii\db\ActiveRecord>` $model
732732
* `param array` $attributes
733733
* `return void`
734734

@@ -818,9 +818,9 @@ $I->grabAttributeFrom('#tooltip', 'title');
818818
#### grabComponent
819819

820820
@deprecated
821-
* `param ` $component
821+
* `param string` $component
822822
* `throws \Codeception\Exception\ModuleException`
823-
* `return mixed`
823+
* `return ?object`
824824

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

959959
* `part` orm
960-
* `param ` $model
960+
* `param class-string<\yii\db\ActiveRecord>` $model
961961
* `param array` $attributes
962-
* `return mixed`
962+
* `return \yii\db\ActiveRecord|array|null`
963963

964964
Retrieves a record from the database
965965

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

10361036
* `part` fixtures
10371037
* `param ` $fixtures
1038+
* `return void`
10381039

10391040
Creates and loads fixtures from a config.
10401041

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

11091110
#### haveRecord
11101111

1112+
* `template` T of \yii\db\ActiveRecord
11111113
* `part` orm
1112-
* `param ` $model
1113-
* `param array` $attributes
1114+
* `param class-string<T>` $model
1115+
* `param ` $attributes
11141116
* `return mixed`
11151117

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

13111313
* `part` email
1312-
* `param int` $num
1314+
* `param int|null` $num
13131315
* `throws \Codeception\Exception\ModuleException`
13141316
* `return void`
13151317

@@ -1529,7 +1531,7 @@ Asserts that current page has 404 response status code.
15291531
#### seeRecord
15301532

15311533
* `part` orm
1532-
* `param ` $model
1534+
* `param class-string<\yii\db\ActiveRecord>` $model
15331535
* `param array` $attributes
15341536
* `return void`
15351537

0 commit comments

Comments
 (0)