/** * @param string $url * @param EntityInterface $entity * * @return bool */ protected function uploadImageFromUrl($url, EntityInterface $entity) { return $this->downloader->image($url, $this->downloader->getRoot() . $entity->getWebPath()); }
public function testGetRoot() { $this->assertEquals($this->dir, $this->downloader->getRoot()); }