for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
class ShortURLTest extends \SapphireTest
* @var array
protected static $fixture_file = array(
public function testGetCMSFields()
$object = $this->objFromFixture('Dynamic\\ShortURL\\ShortURL', 'one');
$fields = $object->getCMSFields();
public function testGetValidate()
$object->Title = '';
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
This is most likely a typographical error or the method has been renamed.
$object->URL = '';
$object->CampaignSource = '';
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
$expected = $object->URL . '?utm_source=' . $object->CampaignSource;