X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Ffixtures%2Fpeertube-plugin-test-video-constants%2Fmain.js;h=06527bd358fbd2a28561df99011fe64da9db6cf7;hb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;hp=f44704a4489fd994a81752d8319743f1043080ec;hpb=dc3d902234bb73fbc8cf9787e3036f2012526e6c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/fixtures/peertube-plugin-test-video-constants/main.js b/server/tests/fixtures/peertube-plugin-test-video-constants/main.js index f44704a44..06527bd35 100644 --- a/server/tests/fixtures/peertube-plugin-test-video-constants/main.js +++ b/server/tests/fixtures/peertube-plugin-test-video-constants/main.js @@ -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()