@@ -630,7 +630,7 @@ public function grabFixture(string $name, null|string $index = null): Fixture|\y
630
630
*
631
631
* ``` php
632
632
* <?php
633
- * $user_id = $I->haveRecord('app\models\ User', array( 'name' => 'Davert') );
633
+ * $user_id = $I->haveRecord(model: User::class, attributes: [ 'name' => 'Davert'] );
634
634
* ?>
635
635
* ```
636
636
*
@@ -657,7 +657,7 @@ public function haveRecord(string $model, $attributes = []): mixed
657
657
* Checks that a record exists in the database.
658
658
*
659
659
* ```php
660
- * $I->seeRecord('app\models\ User', array( 'name' => 'davert') );
660
+ * $I->seeRecord(model: User::class, attributes: [ 'name' => 'davert'] );
661
661
* ```
662
662
*
663
663
* @param class-string<\yii\db\ActiveRecord> $model
@@ -677,7 +677,7 @@ public function seeRecord(string $model, array $attributes = []): void
677
677
* Checks that a record does not exist in the database.
678
678
*
679
679
* ```php
680
- * $I->dontSeeRecord('app\models\ User', array( 'name' => 'davert') );
680
+ * $I->dontSeeRecord(User::class, attributes: [ 'name' => 'davert'] );
681
681
* ```
682
682
*
683
683
* @param class-string<\yii\db\ActiveRecord> $model
@@ -697,7 +697,7 @@ public function dontSeeRecord(string $model, array $attributes = []): void
697
697
* Retrieves a record from the database
698
698
*
699
699
* ```php
700
- * $category = $I->grabRecord('app\models\ User', array( 'name' => 'davert') );
700
+ * $category = $I->grabRecord(User::class, attributes: [ 'name' => 'davert'] );
701
701
* ```
702
702
*
703
703
* @param class-string<\yii\db\ActiveRecord> $model
0 commit comments