aboutsummaryrefslogtreecommitdiff
path: root/tests/Entities/CategoryEntityTest.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-07-19 19:18:09 +0300
committerValentin Popov <info@valentineus.link>2020-07-19 19:18:26 +0300
commit506e16bdfcae6996adacdcb5ba23fdf45c98bafe (patch)
tree0f3bb42f2143c782f5289dfb81c3f57ba712500c /tests/Entities/CategoryEntityTest.php
parenta5a69a7732eaf278200ff2af53ed875de43714af (diff)
downloadphp-epg-service-506e16bdfcae6996adacdcb5ba23fdf45c98bafe.tar.xz
php-epg-service-506e16bdfcae6996adacdcb5ba23fdf45c98bafe.zip
Updated category entity
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'tests/Entities/CategoryEntityTest.php')
-rw-r--r--tests/Entities/CategoryEntityTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Entities/CategoryEntityTest.php b/tests/Entities/CategoryEntityTest.php
index 6ad7bd3..35363fa 100644
--- a/tests/Entities/CategoryEntityTest.php
+++ b/tests/Entities/CategoryEntityTest.php
@@ -32,10 +32,10 @@ final class CategoryEntityTest extends TestCase {
public function testCreateEntity(): void {
$faker = Faker::create();
- $id = $faker->numberBetween(1, 999);
- $lang = $faker->languageCode;
- $name = $faker->word;
- $version = $faker->sha256;
+ $id = $faker->unique()->sha256;
+ $lang = $faker->unique()->sha256;
+ $name = $faker->unique()->sha256;
+ $version = $faker->unique()->sha256;
$entity = CategoryEntity::create(compact('id', 'lang', 'name', 'version'));