diff options
author | Valentin Popov <info@valentineus.link> | 2020-07-18 15:00:14 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-07-18 15:00:14 +0300 |
commit | 131be3511360ba4083caf72d40c47d3f6d5c473f (patch) | |
tree | 8fddd0160b130a754dbbca582dcde3cf1acc8bdd /tests | |
parent | a52e2e198708cf3e24eda73cbbc5906593cc730a (diff) | |
download | php-epg-service-131be3511360ba4083caf72d40c47d3f6d5c473f.tar.xz php-epg-service-131be3511360ba4083caf72d40c47d3f6d5c473f.zip |
Added week of program
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Repositories/ProgramRepositoryTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Repositories/ProgramRepositoryTest.php b/tests/Repositories/ProgramRepositoryTest.php index f8a32d7..f943bb6 100644 --- a/tests/Repositories/ProgramRepositoryTest.php +++ b/tests/Repositories/ProgramRepositoryTest.php @@ -36,11 +36,12 @@ final class ProgramRepositoryTest extends TestCase { * @throws \Exception */ public function testGetAction(): void { + $week = date('Y-m-d', strtotime('this week')); $env = GetServiceEnvironment::get(); $channels = ChannelRepository::create($env)->get(); $channel = array_shift($channels); - foreach (ProgramRepository::create($env, $channel->id)->get() as $program) { + foreach (ProgramRepository::create($env, $channel->id, $week)->get() as $program) { /** @var \EPGService\Entities\ProgramEntity $program */ self::assertNotEmpty($program->channel_id); |