public function testPrependNoCustomVideo() { $this->_mockRequestParams->shouldReceive('getParamValue')->once()->with('tubepress_item')->andReturn(''); $providerResult = new tubepress_api_media_MediaPage(); $event = $this->mock('tubepress_api_event_EventInterface'); $this->_sut->prependItems($event); $this->assertEquals(array(), $providerResult->getItems()); }
public function testSetGetVideos() { $vids = array('hello'); $this->_sut->setItems($vids); $this->assertEquals($vids, $this->_sut->getItems()); }