aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-07-18 14:49:06 +0300
committerValentin Popov <info@valentineus.link>2020-07-18 14:49:06 +0300
commita52e2e198708cf3e24eda73cbbc5906593cc730a (patch)
treecadbfa28d9729d99f3dcc1153bbe4e14b3998b63 /tests
parent92bfdcb284477b66d0b3770bc8fbaf1c12cc0b56 (diff)
downloadphp-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')
-rw-r--r--tests/Repositories/ChannelRepositoryTest.php3
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);
}
}
}