Skip to content

Commit 3a06211

Browse files
committed
docs: fix namespace for UserModel
1 parent 4dd42c2 commit 3a06211

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3+
use App\Models\UserModel;
34
use CodeIgniter\Test\Fabricator;
45

5-
$model = new \UserModel($testDbConnection);
6+
$model = new UserModel($testDbConnection);
67

78
$fabricator = new Fabricator($model);

user_guide_src/source/testing/fabricator/004.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use App\Models\UserModel;
34
use CodeIgniter\Test\Fabricator;
45

56
$formatters = [
@@ -9,4 +10,4 @@
910
'avatar' => 'imageUrl',
1011
];
1112

12-
$fabricator = new Fabricator(\UserModel::class, $formatters);
13+
$fabricator = new Fabricator(UserModel::class, $formatters);
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use App\Models\UserModel;
34
use CodeIgniter\Test\Fabricator;
45

5-
$fabricator = new Fabricator(\UserModel::class, null, 'fr_FR');
6+
$fabricator = new Fabricator(UserModel::class, null, 'fr_FR');

0 commit comments

Comments
 (0)