1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Updated tests to use v2.3.0 database fixtures

This commit is contained in:
Nick Liu
2020-05-24 16:29:41 -05:00
parent bfdfe3a3b0
commit b074ad21b0
8 changed files with 1119 additions and 1092 deletions

View File

@@ -44,13 +44,15 @@
public function testGetClassList()
{
$result = $this->usr->getClassList();
$expected = array ( 0 => 4, 1 => 5, 2 => 253, 3 => 254, 4 => 250, 5 => 251, 6 => 0,);
$this->assertEquals($expected, $result);
$this->assertContains(e_UC_MEMBER, $result);
$this->assertContains(e_UC_ADMIN, $result);
$this->assertContains(e_UC_MAINADMIN, $result);
$result = $this->usr->getClassList(true);
$expected = "4,5,253,254,250,251,0";
$this->assertEquals($expected, $result);
$result = array_map('intval', explode(',', $result));
$this->assertContains(e_UC_MEMBER, $result);
$this->assertContains(e_UC_ADMIN, $result);
$this->assertContains(e_UC_MAINADMIN, $result);
}
/* public function testIsNewUser()