for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\AssetAdmin\Tests\Forms\RemoteFileFormFactoryTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\View\Embed\Embeddable;
class MockEmbed implements Embeddable, TestOnly
{
protected $url;
public function __construct($url)
$this->url = $url;
}
public function getWidth()
return 100;
public function getHeight()
public function getPreviewURL()
return $this->url;
/**
* Get human readable name for this resource
*
* @return string
*/
public function getName()
return 'image';
* Get Embed type
public function getType()
* Validate this resource
* @return bool
public function validate()
return true;