mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Remove object class
This commit is contained in:
parent
63f930c4e9
commit
0abce5e859
@ -327,7 +327,7 @@ class SiteTreeTest extends SapphireTest
|
||||
$this->assertEquals($pageID, $resultPage->ID);
|
||||
$this->assertEquals($pageID, $requeriedPage->ID);
|
||||
$this->assertEquals('About Us', $requeriedPage->Title);
|
||||
$this->assertEquals('Page', $requeriedPage->class);
|
||||
$this->assertInstanceOf('Page', $requeriedPage);
|
||||
|
||||
|
||||
$page2 = $this->objFromFixture('Page', 'products');
|
||||
@ -345,7 +345,7 @@ class SiteTreeTest extends SapphireTest
|
||||
Versioned::set_stage(Versioned::DRAFT);
|
||||
$requeriedPage = DataObject::get_by_id("Page", $page2ID);
|
||||
$this->assertEquals('Products', $requeriedPage->Title);
|
||||
$this->assertEquals('Page', $requeriedPage->class);
|
||||
$this->assertInstanceOf('Page', $requeriedPage);
|
||||
}
|
||||
|
||||
public function testGetByLink()
|
||||
|
Loading…
Reference in New Issue
Block a user