24 $this->createPartialMock(
25 \
Magento\ProductVideo\Model\Product\Attribute\Media\VideoEntry::class,
26 [
'getData',
'setData']
35 $this->modelObject->expects($this->once())->method(
'getData')->willReturn(
'image');
36 $this->modelObject->getMediaType();
44 $this->modelObject->expects($this->once())->method(
'setData')->willReturn($this->modelObject);
45 $this->modelObject->setMediaType(
'image');
53 $this->modelObject->expects($this->once())->method(
'getData')->willReturn(
'provider');
54 $this->modelObject->getVideoProvider();
62 $this->modelObject->expects($this->once())->method(
'setData')->willReturn($this->modelObject);
63 $this->modelObject->setVideoProvider(
'provider');
71 $this->modelObject->expects($this->once())->method(
'getData')->willReturn(
72 'https://www.url.com/watch?v=aaaaaaaaa' 74 $this->modelObject->getVideoUrl();
82 $this->modelObject->expects($this->once())->method(
'setData')->willReturn($this->modelObject);
83 $this->modelObject->setVideoUrl(
'https://www.url.com/watch?v=aaaaaaaaa');
91 $this->modelObject->expects($this->once())->method(
'getData')->willReturn(
'Title');
92 $this->modelObject->getVideoTitle();
100 $this->modelObject->expects($this->once())->method(
'setData')->willReturn($this->modelObject);
101 $this->modelObject->setVideoTitle(
'Title');
109 $this->modelObject->expects($this->once())->method(
'getData')->willReturn(
'Description');
110 $this->modelObject->getVideoDescription();
118 $this->modelObject->expects($this->once())->method(
'setData')->willReturn($this->modelObject);
119 $this->modelObject->setVideoDescription(
'Description');
127 $this->modelObject->expects($this->once())->method(
'getData')->willReturn(
'Meta data');
128 $this->modelObject->getVideoMetadata();
136 $this->modelObject->expects($this->once())->method(
'setData')->willReturn($this->modelObject);
137 $this->modelObject->setVideoMetadata(
'Meta data');
testGetVideoDescription()
testSetVideoDescription()