/** * testBreakAllRelations */ public function testBreakAllRelations() { $rel = $this->relations[0]; $this->object->breakAllRelations($rel->own_model, $rel->own_backend, $rel->own_id); $relations = $this->object->getAllRelations($rel->own_model, $rel->own_backend, $rel->own_id); $this->assertEquals(0, count($relations)); // test that the other relations still exists $rel = $this->relations[2]; $this->object->getRelation($rel->getId(), $rel->related_model, $rel->related_backend, $rel->related_id); }