@@ -318,7 +318,7 @@ public function testDeleteUnexistingVersion()
318318 public function testGetVersionByLabel ()
319319 {
320320 $ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
321- $ history ->addVersionLabel ('1.0 ' ,'stable ' ,false );
321+ $ history ->addVersionLabel ('1.0 ' , 'stable ' , false );
322322
323323 $ expectedVersion = $ history ->getVersion ('1.0 ' );
324324 $ actualVersion = $ history ->getVersionByLabel ('stable ' );
@@ -345,7 +345,7 @@ public function testUnexistingGetVersionByLabel()
345345 public function testAddLabel ()
346346 {
347347 $ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
348- $ history ->addVersionLabel ('1.0 ' ,'stable ' ,false );
348+ $ history ->addVersionLabel ('1.0 ' , 'stable ' , false );
349349 $ node = $ history ->getNode ('jcr:versionLabels ' );
350350 try {
351351 $ property = $ node ->getProperty ('stable ' );
@@ -361,9 +361,9 @@ public function testAddLabel()
361361 public function testHasVersionLabel ()
362362 {
363363 $ 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 );
367367
368368 $ version = $ history ->getVersion ('1.0 ' );
369369
@@ -385,9 +385,9 @@ public function testHasVersionLabel()
385385 public function testGetVersionLabels ()
386386 {
387387 $ 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 );
391391
392392 $ version = $ history ->getVersion ('1.0 ' );
393393
@@ -409,7 +409,7 @@ public function testGetVersionLabels()
409409 public function testRemoveLabel ()
410410 {
411411 $ history = $ this ->vm ->getVersionHistory ('/tests_version_base/versioned ' );
412- $ history ->addVersionLabel ('1.0 ' ,'toremove ' ,false );
412+ $ history ->addVersionLabel ('1.0 ' , 'toremove ' , false );
413413
414414 $ history ->removeVersionLabel ('toremove ' );
415415
@@ -450,5 +450,4 @@ protected function versionExists($history, $versionName)
450450 return false ;
451451 }
452452
453- // TODO: missing addVersionlabel, getVersionByLabel, getVersionLabels, hasVersionLabel, removeVersionLabel
454453}
0 commit comments