public function testGetOppositeLinkId() { $l = new Link($this->container); $this->assertNotFalse($l->create('Link A')); $this->assertNotFalse($l->create('Link B', 'Link C')); $this->assertEquals(1, $l->getOppositeLinkId(1)); $this->assertEquals(3, $l->getOppositeLinkId(2)); $this->assertEquals(2, $l->getOppositeLinkId(3)); }