Created
July 30, 2017 02:30
-
-
Save Firesphere/7e308cc6b7adca5531fa442bc092aa4f to your computer and use it in GitHub Desktop.
foo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PageTest extends SapphireTest | |
{ | |
protected static $fixture_file = 'PageTest.yml'; | |
public function setUp() | |
{ | |
parent::setUp(); | |
$this->page = $this->objFromFixture('Page', 'TestPage'); | |
$this->page->doPublish(); | |
} | |
public function testPage() | |
{ | |
$result = Director::test($this->page->AbsoluteLink()); | |
$this->assertEquals(200, $result->getStatusCode()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment