FIX: Test fixes needed for the new simplified test run structure.

This commit is contained in:
Sam Minnee 2016-10-28 17:45:01 +13:00
parent eef14c1afc
commit 7d18cda7ee
2 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,7 @@ use SilverStripe\Dev\TestOnly;
class SilverStripeNavigatorTest extends SapphireTest {
protected static $fixture_file = 'cms/tests/controller/CMSMainTest.yml';
protected static $fixture_file = 'CMSMainTest.yml';
public function testGetItems() {
$page = $this->objFromFixture('Page', 'page1');

View File

@ -13,6 +13,12 @@ class RedirectorPageTest extends FunctionalTest {
protected static $use_draft_site = true;
protected $autoFollowRedirection = false;
public function setUp()
{
parent::setUp();
Director::config()->update('alternate_base_url', 'http://www.mysite.com/');
}
public function testGoodRedirectors() {
/* For good redirectors, the final destination URL will be returned */
$this->assertEquals("http://www.google.com", $this->objFromFixture('SilverStripe\\CMS\\Model\\RedirectorPage','goodexternal')->Link());