/** @depends testReadAttribute * @depends testReadInexistentAttribute */ public function testDeleteAttribute() { $attr = new Attribute("attr", 0); $id = AttributesService::createAttribute($attr); $attr->id = $id; $this->assertTrue(AttributesService::deleteAttribute($id)); $this->assertNull(AttributesService::getAttribute($id)); }