mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX: Test fixes needed for the new simplified test run structure.
This commit is contained in:
parent
eef14c1afc
commit
7d18cda7ee
@ -15,7 +15,7 @@ use SilverStripe\Dev\TestOnly;
|
|||||||
|
|
||||||
class SilverStripeNavigatorTest extends SapphireTest {
|
class SilverStripeNavigatorTest extends SapphireTest {
|
||||||
|
|
||||||
protected static $fixture_file = 'cms/tests/controller/CMSMainTest.yml';
|
protected static $fixture_file = 'CMSMainTest.yml';
|
||||||
|
|
||||||
public function testGetItems() {
|
public function testGetItems() {
|
||||||
$page = $this->objFromFixture('Page', 'page1');
|
$page = $this->objFromFixture('Page', 'page1');
|
||||||
|
@ -13,6 +13,12 @@ class RedirectorPageTest extends FunctionalTest {
|
|||||||
protected static $use_draft_site = true;
|
protected static $use_draft_site = true;
|
||||||
protected $autoFollowRedirection = false;
|
protected $autoFollowRedirection = false;
|
||||||
|
|
||||||
|
public function setUp()
|
||||||
|
{
|
||||||
|
parent::setUp();
|
||||||
|
Director::config()->update('alternate_base_url', 'http://www.mysite.com/');
|
||||||
|
}
|
||||||
|
|
||||||
public function testGoodRedirectors() {
|
public function testGoodRedirectors() {
|
||||||
/* For good redirectors, the final destination URL will be returned */
|
/* For good redirectors, the final destination URL will be returned */
|
||||||
$this->assertEquals("http://www.google.com", $this->objFromFixture('SilverStripe\\CMS\\Model\\RedirectorPage','goodexternal')->Link());
|
$this->assertEquals("http://www.google.com", $this->objFromFixture('SilverStripe\\CMS\\Model\\RedirectorPage','goodexternal')->Link());
|
||||||
|
Loading…
Reference in New Issue
Block a user