Skip to content

Commit 2d0c08a

Browse files
committed
Changed Factory slug definition again
Should return the number of caracters we want now to avoid duplicate slug
1 parent 68322e5 commit 2d0c08a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/sprinkles/account/factories/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* General factory for the Group Model
1515
*/
1616
$fm->define('UserFrosting\Sprinkle\Account\Database\Models\Group')->setDefinitions([
17-
'slug' => Faker::word(10),
17+
'slug' => Faker::text(10),
1818
'name' => Faker::word(),
1919
'description' => Faker::paragraph(),
2020
]);

app/sprinkles/account/factories/Permissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* General factory for the Permission Model
1515
*/
1616
$fm->define('UserFrosting\Sprinkle\Account\Database\Models\Permission')->setDefinitions([
17-
'slug' => Faker::word(10),
17+
'slug' => Faker::text(10),
1818
'name' => Faker::word(),
1919
'description' => Faker::paragraph(),
2020
'conditions' => Faker::word(),

app/sprinkles/account/factories/Roles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* General factory for the Role Model
1515
*/
1616
$fm->define('UserFrosting\Sprinkle\Account\Database\Models\Role')->setDefinitions([
17-
'slug' => Faker::word(10),
17+
'slug' => Faker::text(10),
1818
'name' => Faker::word(),
1919
'description' => Faker::paragraph(),
2020
]);

app/sprinkles/admin/tests/Integration/Controller/GroupControllerGuestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ private function setupUser()
401401

402402
// Create test role
403403
$fm = $this->ci->factory;
404-
$role = $fm->create('UserFrosting\Sprinkle\Account\Database\Models\Group', [
404+
$fm->create('UserFrosting\Sprinkle\Account\Database\Models\Group', [
405405
'slug' => 'foo',
406406
'name' => 'bar'
407407
]);

0 commit comments

Comments
 (0)