Skip to content

Instantly share code, notes, and snippets.

@Firesphere
Created July 30, 2017 02:30
Show Gist options
  • Save Firesphere/7e308cc6b7adca5531fa442bc092aa4f to your computer and use it in GitHub Desktop.
Save Firesphere/7e308cc6b7adca5531fa442bc092aa4f to your computer and use it in GitHub Desktop.
foo
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