/** @depends testReadAttribute */ public function testUpdateAttribute() { $attr = new Attribute("attr", 0); $id = AttributesService::createAttribute($attr); $attr->id = $id; $attr->label = "updated"; $this->assertTrue(AttributesService::updateAttribute($attr), "Update failed"); $read = AttributesService::getAttribute($id); $this->assertEquals("updated", $read->label); }