]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/fixtures/peertube-plugin-test-video-constants/main.js
Merge branch 'release/4.0.0' into develop
[github/Chocobozzz/PeerTube.git] / server / tests / fixtures / peertube-plugin-test-video-constants / main.js
index f44704a4489fd994a81752d8319743f1043080ec..06527bd358fbd2a28561df99011fe64da9db6cf7 100644 (file)
@@ -7,24 +7,26 @@ async function register ({
   getRouter
 }) {
   videoLanguageManager.addConstant('al_bhed', 'Al Bhed')
-  videoLanguageManager.addConstant('al_bhed2', 'Al Bhed 2')
+  videoLanguageManager.addLanguage('al_bhed2', 'Al Bhed 2')
   videoLanguageManager.addConstant('al_bhed3', 'Al Bhed 3')
   videoLanguageManager.deleteConstant('en')
-  videoLanguageManager.deleteConstant('fr')
+  videoLanguageManager.deleteLanguage('fr')
   videoLanguageManager.deleteConstant('al_bhed3')
 
-  videoCategoryManager.addConstant(42, 'Best category')
+  videoCategoryManager.addCategory(42, 'Best category')
   videoCategoryManager.addConstant(43, 'High best category')
   videoCategoryManager.deleteConstant(1) // Music
-  videoCategoryManager.deleteConstant(2) // Films
+  videoCategoryManager.deleteCategory(2) // Films
 
-  videoLicenceManager.addConstant(42, 'Best licence')
+  videoLicenceManager.addLicence(42, 'Best licence')
   videoLicenceManager.addConstant(43, 'High best licence')
   videoLicenceManager.deleteConstant(1) // Attribution
   videoLicenceManager.deleteConstant(7) // Public domain
 
   videoPrivacyManager.deleteConstant(2)
+  videoPrivacyManager.deletePrivacy(2)
   playlistPrivacyManager.deleteConstant(3)
+  playlistPrivacyManager.deletePlaylistPrivacy(3)
 
   {
     const router = getRouter()