@@ -318,7 +318,7 @@ public function testDeleteUnexistingVersion()
318
318
public function testGetVersionByLabel ()
319
319
{
320
320
$ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
321
- $ history ->addVersionLabel ('1.0 ' ,'stable ' ,false );
321
+ $ history ->addVersionLabel ('1.0 ' , 'stable ' , false );
322
322
323
323
$ expectedVersion = $ history ->getVersion ('1.0 ' );
324
324
$ actualVersion = $ history ->getVersionByLabel ('stable ' );
@@ -345,7 +345,7 @@ public function testUnexistingGetVersionByLabel()
345
345
public function testAddLabel ()
346
346
{
347
347
$ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
348
- $ history ->addVersionLabel ('1.0 ' ,'stable ' ,false );
348
+ $ history ->addVersionLabel ('1.0 ' , 'stable ' , false );
349
349
$ node = $ history ->getNode ('jcr:versionLabels ' );
350
350
try {
351
351
$ property = $ node ->getProperty ('stable ' );
@@ -361,9 +361,9 @@ public function testAddLabel()
361
361
public function testHasVersionLabel ()
362
362
{
363
363
$ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
364
- $ history ->addVersionLabel ('1.0 ' ,'stable ' ,false );
365
- $ history ->addVersionLabel ('1.0 ' ,'labelname ' ,false );
366
- $ history ->addVersionLabel ('1.1 ' ,'anotherlabelname ' ,false );
364
+ $ history ->addVersionLabel ('1.0 ' , 'stable ' , false );
365
+ $ history ->addVersionLabel ('1.0 ' , 'labelname ' , false );
366
+ $ history ->addVersionLabel ('1.1 ' , 'anotherlabelname ' , false );
367
367
368
368
$ version = $ history ->getVersion ('1.0 ' );
369
369
@@ -385,9 +385,9 @@ public function testHasVersionLabel()
385
385
public function testGetVersionLabels ()
386
386
{
387
387
$ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
388
- $ history ->addVersionLabel ('1.0 ' ,'stable ' ,false );
389
- $ history ->addVersionLabel ('1.0 ' ,'labelname ' ,false );
390
- $ history ->addVersionLabel ('1.1 ' ,'anotherlabelname ' ,false );
388
+ $ history ->addVersionLabel ('1.0 ' , 'stable ' , false );
389
+ $ history ->addVersionLabel ('1.0 ' , 'labelname ' , false );
390
+ $ history ->addVersionLabel ('1.1 ' , 'anotherlabelname ' , false );
391
391
392
392
$ version = $ history ->getVersion ('1.0 ' );
393
393
@@ -409,7 +409,7 @@ public function testGetVersionLabels()
409
409
public function testRemoveLabel ()
410
410
{
411
411
$ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
412
- $ history ->addVersionLabel ('1.0 ' ,'toremove ' ,false );
412
+ $ history ->addVersionLabel ('1.0 ' , 'toremove ' , false );
413
413
414
414
$ history ->removeVersionLabel ('toremove ' );
415
415
@@ -450,5 +450,4 @@ protected function versionExists($history, $versionName)
450
450
return false ;
451
451
}
452
452
453
- // TODO: missing addVersionlabel, getVersionByLabel, getVersionLabels, hasVersionLabel, removeVersionLabel
454
453
}
0 commit comments