diff options
author | Valentin Popov <info@valentineus.link> | 2020-07-18 14:49:06 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-07-18 14:49:06 +0300 |
commit | a52e2e198708cf3e24eda73cbbc5906593cc730a (patch) | |
tree | cadbfa28d9729d99f3dcc1153bbe4e14b3998b63 /tests/Repositories/ChannelRepositoryTest.php | |
parent | 92bfdcb284477b66d0b3770bc8fbaf1c12cc0b56 (diff) | |
download | php-epg-service-a52e2e198708cf3e24eda73cbbc5906593cc730a.tar.xz php-epg-service-a52e2e198708cf3e24eda73cbbc5906593cc730a.zip |
Added DateTime of channel entity
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'tests/Repositories/ChannelRepositoryTest.php')
-rw-r--r-- | tests/Repositories/ChannelRepositoryTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Repositories/ChannelRepositoryTest.php b/tests/Repositories/ChannelRepositoryTest.php index 2843a8b..eea6511 100644 --- a/tests/Repositories/ChannelRepositoryTest.php +++ b/tests/Repositories/ChannelRepositoryTest.php @@ -19,6 +19,7 @@ declare(strict_types = 1); namespace Tests\Repositories; +use DateTime; use EPGService\Repositories\ChannelRepository; use PHPUnit\Framework\TestCase; use Tests\Utilities\GetServiceEnvironment; @@ -44,8 +45,8 @@ final class ChannelRepositoryTest extends TestCase { self::assertIsString($channel->id); self::assertIsString($channel->lang); self::assertIsString($channel->name); - self::assertIsString($channel->update_at); self::assertIsString($channel->week); + self::isInstanceOf(DateTime::class, $channel->update_at); } } } |