Esempio n. 1
0
<?php

require_once '../de/appwerk/radio/Session.php';
require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
require_once '../de/appwerk/radio/test/WebDBUtilsTest.php';
Session::getInstance();
$rootDBUtilsTest = new RootDBUtilsTest();
$webDBUtilsTest = new WebDBUtilsTest();
$rootDBUtilsTest->appendScreens();
$rootDBUtilsTest->appendScreenProcedures();
$webDBUtilsTest->addMockScreen();
$webDBUtilsTest->listScreens();
exit(1);
Esempio n. 2
0
<?php

require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
$au = new RootDBUtilsTest();
$au->addIdToScreen();
exit(1);
Esempio n. 3
0
<?php

require_once '../de/appwerk/radio/Session.php';
require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
require_once '../de/appwerk/radio/test/WebDBUtilsTest.php';
Session::getInstance();
$rootDBUtilsTest = new RootDBUtilsTest();
$webDBUtilsTest = new WebDBUtilsTest();
$rootDBUtilsTest->alterSelects();
exit(1);
Esempio n. 4
0
require_once '../de/appwerk/radio/RoleUtils.php';
require_once '../de/appwerk/radio/test/UserTest.php';
require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
require_once '../de/appwerk/radio/test/WebDBUtilsTest.php';
require_once '../de/appwerk/radio/test/RoleUtilsTest.php';
require_once '../de/appwerk/radio/test/AdsUtilsTest.php';
$ut = new UserTest();
$at = new AdsUtilsTest();
$session = Session::getInstance();
$l = readline('Are you sure you want to reset the DB?' . PHP_EOL);
$l = readline('Reset the DB?' . PHP_EOL);
if ('yyy' != $l) {
    print 'Never reset the DB.' . PHP_EOL;
    exit(1);
}
$rootDBUtilsTest = new RootDBUtilsTest();
$rootDBUtilsTest->setupWebDBUser();
$rootDBUtilsTest->setupUserDB();
$rootDBUtilsTest->setupPlaylistDB();
$rootDBUtilsTest->setupStreamDB();
$rootDBUtilsTest->setupWebDBUserRights();
$roleUtilsTest = new RoleUtilsTest();
$roleUtilsTest->addRoles();
RoleUtils::getInstance()->load();
$webDBUtilsTest = new WebDBUtilsTest();
$webDBUtilsTest->addMockUser('*****@*****.**', 'admin');
$webDBUtilsTest->linkMockUser('*****@*****.**', RoleUtils::ADMIN);
$webDBUtilsTest->linkMockUser('*****@*****.**', RoleUtils::TENANT);
$webDBUtilsTest->linkMockUser('*****@*****.**', RoleUtils::GUEST);
$webDBUtilsTest->listRolesOfUser('*****@*****.**');
$webDBUtilsTest->addMockUser('*****@*****.**', 'test');
Esempio n. 5
0
<?php

require_once '../de/appwerk/radio/Session.php';
require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
require_once '../de/appwerk/radio/test/WebDBUtilsTest.php';
Session::getInstance();
$rootDBUtilsTest = new RootDBUtilsTest();
$webDBUtilsTest = new WebDBUtilsTest();
$rootDBUtilsTest->updateUserRoles();
exit(1);
Esempio n. 6
0
<?php

require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
$rdb = new RootDBUtilsTest();
$rdb->alterPlaylistSong();
exit;
Esempio n. 7
0
<?php

require_once '../de/appwerk/radio/test/PlaylistUtilsTest.php';
require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
$ut = new PlaylistUtilsTest();
$rt = new RootDBUtilsTest();
$ut->addPlaylist();
/*
$i = 1000;
while($i--){ $ut->addMockPlaylist(); }

$i = 1000;
while($i--){ $ut->addMockSong(); }

$i = 1000;
while($i--){
	$songs = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
	$ut->savePlaylist(1, $songs);
}
*/
$rt->updatePlaylist();
$ut->removePlaylist();
exit(1);
Esempio n. 8
0
<?php

require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
$r = new RootDBUtilsTest();
$r->setupCommentDB();
exit(1);
Esempio n. 9
0
<?php

require_once '../de/appwerk/radio/Session.php';
require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
require_once '../de/appwerk/radio/test/WebDBUtilsTest.php';
Session::getInstance();
$rootDBUtilsTest = new RootDBUtilsTest();
$webDBUtilsTest = new WebDBUtilsTest();
$rootDBUtilsTest->appendPolicies();
$rootDBUtilsTest->appendPolicyProcedures();
$webDBUtilsTest->setPolicies();
exit(1);
Esempio n. 10
0
<?php

require_once '../de/appwerk/radio/Session.php';
require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
require_once '../de/appwerk/radio/test/WebDBUtilsTest.php';
Session::getInstance();
$rootDBUtilsTest = new RootDBUtilsTest();
$webDBUtilsTest = new WebDBUtilsTest();
$rootDBUtilsTest->appendTenantProcedures();
exit(1);