From dfaf1d026accae515b9d7cb8593a6f157884fe07 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 21 Mar 2013 17:57:48 +0100 Subject: Fix two broken tests --- tests/Tag2TagTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/Tag2TagTest.php b/tests/Tag2TagTest.php index 58556f1..d7dd8b7 100644 --- a/tests/Tag2TagTest.php +++ b/tests/Tag2TagTest.php @@ -270,12 +270,14 @@ class Tag2TagTest extends TestBase $tts = $this->tts; $linkedTags = $tts->getLinkedTags('a', '>', $uid); $this->assertEquals(2, count($linkedTags)); - $this->assertSame('b', $linkedTags[0]['tag']); - $this->assertSame('d', $linkedTags[1]['tag']); + $this->assertInternalType('string', $linkedTags[0]); + $this->assertSame('b', $linkedTags[0]); + $this->assertInternalType('string', $linkedTags[1]); + $this->assertSame('d', $linkedTags[1]); $linkedTags = $tts->getLinkedTags('b', '>', $uid); $this->assertEquals(1, count($linkedTags)); - $this->assertSame('c', $linkedTags[0]['tag']); + $this->assertSame('c', $linkedTags[0]); $this->assertTrue($tts->existsLinkedTags('d', 'e', '>', $uid)); $this->assertFalse($tts->existsLinkedTags('e', 'd', '>', $uid)); } -- cgit v1.2.3-54-g00ecf