fix(generator): add hotKey to Group and Cue
This commit is contained in:
parent
e46e7e5f9c
commit
6f79982283
|
|
@ -93,6 +93,19 @@ class Group
|
|||
return $uuids;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the group's hotKey.
|
||||
*/
|
||||
public function getHotKey(): ?\Rv\Data\HotKey
|
||||
{
|
||||
$group = $this->cueGroup->getGroup();
|
||||
if ($group === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $group->getHotKey();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the underlying protobuf CueGroup object.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -782,7 +782,7 @@ class ProFileGeneratorTest extends TestCase
|
|||
// Navigate to the first slide's media action
|
||||
$cue = $song->getPresentation()->getCues()[0];
|
||||
$action = $cue->getActions()[0]; // media action
|
||||
$url = $action->getMedia()->getUrl();
|
||||
$url = $action->getMedia()->getElement()->getUrl();
|
||||
|
||||
$this->assertNotNull($url);
|
||||
$this->assertNotNull($url->getLocal());
|
||||
|
|
@ -816,7 +816,7 @@ class ProFileGeneratorTest extends TestCase
|
|||
// Navigate to the first slide's media action
|
||||
$cue = $song->getPresentation()->getCues()[0];
|
||||
$action = $cue->getActions()[0]; // media action
|
||||
$url = $action->getMedia()->getUrl();
|
||||
$url = $action->getMedia()->getElement()->getUrl();
|
||||
|
||||
$this->assertNotNull($url);
|
||||
$this->assertNotNull($url->getLocal());
|
||||
|
|
@ -850,7 +850,7 @@ class ProFileGeneratorTest extends TestCase
|
|||
// Navigate to the first slide's media action
|
||||
$cue = $song->getPresentation()->getCues()[0];
|
||||
$action = $cue->getActions()[0]; // media action
|
||||
$url = $action->getMedia()->getUrl();
|
||||
$url = $action->getMedia()->getElement()->getUrl();
|
||||
|
||||
$this->assertNotNull($url);
|
||||
$this->assertNotNull($url->getLocal());
|
||||
|
|
|
|||
Loading…
Reference in a new issue