* @license http://www.apache.org/licenses/LICENSE-2.0 * @package Tests\Repositories */ final class ProgramRepositoryTest extends TestCase { /** * @throws \GuzzleHttp\Exception\GuzzleException * @throws \RuntimeException * @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, $week)->get() as $program) { /** @var \EPGService\Entities\ProgramEntity $program */ self::assertNotEmpty($program->channel_id); self::assertNotEmpty($program->start); self::assertNotEmpty($program->stop); self::assertNotEmpty($program->title); } } }