mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Using assertType() for PHPUnit 3.4 compat in DataListTest
This commit is contained in:
parent
322d98306b
commit
dec86b7e6c
@ -146,7 +146,7 @@ class DataListTest extends SapphireTest {
|
||||
$team = DataList::create("DataObjectTest_Team")->byID($id);
|
||||
|
||||
// byID() returns a DataObject, rather than a DataList
|
||||
$this->assertInstanceOf('DataObjectTest_Team', $team);
|
||||
$this->assertType('DataObjectTest_Team', $team);
|
||||
$this->assertEquals('Team 2', $team->Title);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user