Commit c25b16c1 authored by keven's avatar keven
Browse files

Added a test on platform name

parent 7643ab7d
......@@ -28,12 +28,13 @@ test('Client instantiation', $client = new LibcastClient(array_shift($args), arr
// Platform
test('Create Platform', $platform = $client->createPlatform(new Platform('Automatic testing', 1024*1024*1024, 64)));
test('Create Platform "'.($name = 'Automatic testing '.uniqid()).'"', $platform = $client->createPlatform(new Platform($name, 1024*1024*1024, 64)));
$GLOBALS['__platform'] = $platform;
register_shutdown_function('shutdown');
test('Platform is instanceof Platform', $platform instanceof Platform);
test("Platform has name '$name'", $platform->name == $name);
test('Platform has max 64 users', $platform->maxUsers == 64);
test('Platform has 1 Gio storage', $platform->maxSpace == 1024*1024*1024);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment