public function testSaveInto()
 {
     $o = new LinkFormFieldTest_DataObject();
     $db = new LinkField();
     $db->setPageID(1);
     $db->setCustomURL('http://leftrightandcentre.com.au');
     $f = new LinkFormField('Link', 'Link', $db);
     $f->saveInto($o);
     $this->assertEquals($o->Link->getPageID(), 1);
     $this->assertEquals($o->Link->getCustomURL(), 'http://leftrightandcentre.com.au');
 }
<?php

// Set the module directory so we know where JS, etc lives.
LinkFormField::$module_dir = basename(dirname(__FILE__));