public function testGlobals() { $this->assertFalse($this->accountpage->canCreate(), "account page exists"); $this->assertEquals(Director::baseURL() . "account/", AccountPage::find_link()); $this->assertEquals(Director::baseURL() . "account/order/10", AccountPage::get_order_link(10)); }
/** * @TODO Why do we need to get this from the AccountPage class? */ function Link() { return AccountPage::get_order_link($this->ID); }