Example #1
0
 public function testSetGet()
 {
     $client = new Client();
     $id = 'test_id';
     $client->setId($id);
     $this->assertEquals($id, $client->getId(), 'Unable to setup id!');
     $name = 'test_name';
     $client->setName($name);
     $this->assertEquals($name, $client->getName(), 'Unable to setup name!');
     $title = 'test_title';
     $client->setTitle($title);
     $this->assertEquals($title, $client->getTitle(), 'Unable to setup title!');
     $userAttributes = ['attribute1' => 'value1', 'attribute2' => 'value2'];
     $client->setUserAttributes($userAttributes);
     $this->assertEquals($userAttributes, $client->getUserAttributes(), 'Unable to setup user attributes!');
     $normalizeUserAttributeMap = ['name' => 'some/name', 'email' => 'some/email'];
     $client->setNormalizeUserAttributeMap($normalizeUserAttributeMap);
     $this->assertEquals($normalizeUserAttributeMap, $client->getNormalizeUserAttributeMap(), 'Unable to setup normalize user attribute map!');
     $viewOptions = ['option1' => 'value1', 'option2' => 'value2'];
     $client->setViewOptions($viewOptions);
     $this->assertEquals($viewOptions, $client->getViewOptions(), 'Unable to setup view options!');
 }