/** * Checks if user's attributes are saved correctly when postAttributes() is called with an array of Attributes, that is * multiple Attributes. */ public function testPostAttributes_addsMultipleAttributesCount() { $this->jc->putUsers($this->newUser); $attrCount = count($this->jc->getAttributes($this->newUser)); $this->jc->postAttributes($this->newUser, $this->attrArr); $attr2Value = $this->jc->getAttributes($this->newUser); $newCount = count($attr2Value); $this->jc->deleteUser($this->newUser); $this->assertEquals($attrCount + 2, $newCount); $this->assertEquals('Anchor Steam', $attr2Value[1]->getAttrValue()); }