mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX intl test
This commit is contained in:
parent
475b733579
commit
7e77753274
@ -770,19 +770,19 @@ class SiteTreeTest extends SapphireTest {
|
|||||||
array('pagetype' => $sitetree->i18n_singular_name())
|
array('pagetype' => $sitetree->i18n_singular_name())
|
||||||
);
|
);
|
||||||
$sitetree->write();
|
$sitetree->write();
|
||||||
$this->assertEquals($sitetree->URLSegment, 'neue-seite',
|
$this->assertEquals('neue-site-tree', $sitetree->URLSegment,
|
||||||
'Sets based on default title on first save'
|
'Sets based on default title on first save'
|
||||||
);
|
);
|
||||||
|
|
||||||
$sitetree->Title = 'Changed';
|
$sitetree->Title = 'Changed';
|
||||||
$sitetree->write();
|
$sitetree->write();
|
||||||
$this->assertEquals($sitetree->URLSegment, 'changed',
|
$this->assertEquals('changed', $sitetree->URLSegment,
|
||||||
'Auto-updates when set to default title'
|
'Auto-updates when set to default title'
|
||||||
);
|
);
|
||||||
|
|
||||||
$sitetree->Title = 'Changed again';
|
$sitetree->Title = 'Changed again';
|
||||||
$sitetree->write();
|
$sitetree->write();
|
||||||
$this->assertEquals($sitetree->URLSegment, 'changed',
|
$this->assertEquals('changed', $sitetree->URLSegment,
|
||||||
'Does not auto-update once title has been changed'
|
'Does not auto-update once title has been changed'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user