/** * @covers Paradox\Client::setUserActive */ public function testSetUserActive() { //Create inactive user $result = $this->client->createUser('testuser', 'password', false, array('name' => 'david')); $user = $this->client->getUserInfo('testuser'); $this->assertFalse($user['active'], 'The user is marked as active'); //Set to active $this->client->setUserActive('testuser', true); $user = $this->client->getUserInfo('testuser'); $this->assertTrue($user['active'], 'The user is not marked as active'); //Delete the user $this->client->deleteUser('testuser'); }