Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit be003b0

Browse files
committed
BUG: refs #0377. Must use integer values in our test so as not to confuse pgsql
1 parent 89eede9 commit be003b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/sizequota/tests/controllers/ConfigControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testFolderConfig()
7272

7373
// Exception if invalid folder id is set
7474
$this->resetAll();
75-
$this->dispatchUrI('/sizequota/config/folder?folderId=foo', null, true);
75+
$this->dispatchUrI('/sizequota/config/folder?folderId=-2', null, true);
7676

7777
// Exception if invalid policy
7878
$this->resetAll();
@@ -183,7 +183,7 @@ public function testGetFreeSpace()
183183

184184
// Exception if invalid folder id is set
185185
$this->resetAll();
186-
$this->dispatchUrI('/sizequota/config/getfreespace?folderId=foo', $adminUser);
186+
$this->dispatchUrI('/sizequota/config/getfreespace?folderId=-7', $adminUser);
187187
$resp = JsonComponent::decode($this->getBody());
188188
$this->assertTrue($resp['status'] == false);
189189
$this->assertEquals($resp['message'], 'Invalid folder');

0 commit comments

Comments
 (0)