public function testRemove() { $l = new Link($this->container); $link = $l->getById(3); $this->assertNotEmpty($link); $this->assertEquals('is blocked by', $link['label']); $this->assertEquals(2, $link['opposite_id']); $this->assertTrue($l->remove(2)); $link = $l->getById(2); $this->assertEmpty($link); $link = $l->getById(3); $this->assertNotEmpty($link); $this->assertEquals('is blocked by', $link['label']); $this->assertEquals(0, $link['opposite_id']); }